Polygon class Null safety

Constructors

Polygon({required List<List<LatLng>> paths, 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

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
firstPath UnmodifiableListView<LatLng>
read / write
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
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
onRightClick LatLngCallBack
an event runs on the user click the right mouse button on the element
write-only, inherited
paths List<List<LatLng>>
the paths of the polygon. one polygon could have more than one path.
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

getPath(int index) UnmodifiableListView<LatLng>?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
setPath(int index, List<LatLng> path) → void
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited