Defines a circle on a map.
Name | Type | Description |
|---|---|---|
circleId | Unique circle ID. | |
clickable | bool | Indicates whether a circle is tappable. |
fillColor | Color | Fill color. |
center | Longitude-latitude coordinates of the center of a circle. | |
radius | double | Radius of a circle. |
strokeColor | Color | Stroke color. |
strokeWidth | int | Stroke width of a circle. |
visible | bool | Indicates whether a circle is visible. |
zIndex | int | Z-index of a circle, which indicates the overlapping sequence of the circle. |
strokePattern | List<PatternItem> | Stroke pattern of a circle. |
onClick | VoidCallback? | Function executed when a circle is tapped. |
Creates a Circle object.
Parameter | Type | Description |
|---|---|---|
circleId | Unique circle ID. | |
clickable | bool | Indicates whether a circle is tappable. |
fillColor | Color | Fill color. |
center | Longitude-latitude coordinates of the center of a circle. | |
radius | double | Radius of a circle. |
strokeColor | Color | Stroke color. |
strokeWidth | int | Stroke width of a circle. |
visible | bool | Indicates whether a circle is visible. |
zIndex | int | Z-index of a circle, which indicates the overlapping sequence of the circle. |
strokePattern | List<PatternItem> | Stroke pattern of a circle. |
onClick | VoidCallback? | Function executed when a circle is tapped. |
Method | Return Type | Description |
|---|---|---|
Circle | Copies an existing Circle object and updates the specified attributes. | |
Circle | Clones a Circle object. |
Copies an existing Circle object and updates the specified attributes.
Parameter | Type | Description |
|---|---|---|
clickable | bool? | Indicates whether a circle is tappable. |
fillColor | Color? | Fill color. |
center | Longitude-latitude coordinates of the center of a circle. | |
radius | double? | Radius of a circle. |
strokeColor | Color? | Stroke color. |
strokeWidth | int? | Stroke width of a circle. |
visible | bool? | Indicates whether a circle is visible. |
zIndex | int? | Z-index of a circle, which indicates the overlapping sequence of the circle. |
onClick | VoidCallback? | Function executed when a circle is tapped. |
strokePattern | List<PatternItem>? | Stroke width of a circle. |
Return Type | Description |
|---|---|
Circle | Circle object. |
Call example:
// Define an InfoWindow object. Circle circle; // Call the updateCopy method. circle = circle!.updateCopy(radius: 4000);