MapCircle class Null safety
a circle draws on the map as Polygon
Constructors
- MapCircle({required LatLng center, required double radius, Color fillColor = Colors.greenAccent, double fillOpacity = 1, bool clickable = true, bool editable = false, bool geodesic = false, Color strokeColor = Colors.blueAccent, double strokeOpacity = 1, double strokeWeight = 1, bool visible = true, int zIndex = 1})
Properties
- center ↔ LatLng
-
the center point of the circle.
read / write
- clickable ↔ bool
-
if true the element will be clickable and listen to mouse event.
Default true.
read / write, inherited
- editable ↔ bool
-
if true the user can edit the polyline or polygon.
read / write, inherited
- fillColor ↔ Color
-
read / write, inherited
- fillOpacity ↔ double
-
read / write, inherited
- geodesic ↔ bool
-
When true, edges of the polygon are interpreted as geodesic and will follow the curvature of the Earth.
When false, edges of the polygon are rendered as straight lines in screen space.
read / write, inherited
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- id → int?
-
the id of the element.
read-only, inherited
- isAdded → dynamic
-
Check if the element added to the map.
read-only, inherited
- onCenterChanged ← LatLngCallBack
-
an event run on usee edit the center point of the circle.
write-only
- onClick ← LatLngCallBack
-
an event runs on the user click the left mouse button on the element
write-only, inherited
- onDoubleClick ← LatLngCallBack
-
an event runs on the user double click the left mouse button on the element
write-only, inherited
- onMouseDown ← LatLngCallBack
-
an event runs on the mouse button down on the element.
write-only, inherited
- onMouseMove ← LatLngCallBack
-
an event runs on the mouse move on the element.
write-only, inherited
- onMouseUp ← LatLngCallBack
-
an event runs on the mouse button up on the element.
write-only, inherited
- onRadiusChanged ← CallBackValue
-
an event run on usee edit the radius of the circle.
write-only
- onRightClick ← LatLngCallBack
-
an event runs on the user click the right mouse button on the element
write-only, inherited
- radius ↔ double
-
the radius of the circle in mettrs.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- strokeColor ↔ Color
-
read / write, inherited
- strokeOpacity ↔ double
-
read / write, inherited
- strokeWeight ↔ double
-
read / write, inherited
- visible ↔ bool
-
the visibility of the element
read / write, inherited
- zIndex ↔ int
-
All elements are displayed on the map in order of their zIndex,
with higher values displaying in front of markers with lower values.
By default, elements are displayed according to their vertical position on screen,
with lower elements appearing in front of markers further up the screen.
read / write, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited