PolygonOptions class Map View
Defines PolygonOptions for a polygon.
- Annotations
Constructors
-
PolygonOptions({List<
LatLng> points = const <LatLng>[], List<List< holes = const <List<LatLng>>[], bool clickable = false, Color fillColor = Colors.black, bool geodesic = false, Color strokeColor = Colors.black, double strokeWidth = 10, bool visible = true, double zIndex = 0})LatLng> > -
Initialize PolygonOptions object.
const
Properties
- clickable → bool
-
Specifies whether this polygon is clickable.
final
- fillColor → Color
-
Specifies the polygon's fill color.
final
- geodesic → bool
-
Specifies whether to draw each segment of this polygon as a geodesic.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
-
holes
→ List<
List< LatLng> > -
List of areas that will be excluded from polygon.
final
-
points
→ List<
LatLng> -
Vertices of the polygon to be drawn.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strokeColor → Color
-
Specifies the polygon's stroke color.
final
- strokeWidth → double
-
Specifies the polygon's stroke width, in display pixels.
final
- visible → bool
-
Specifies the visibility for the polygon.
final
- zIndex → double
-
Specifies the polygon's zIndex, i.e., the order in which it will be drawn.
final
Methods
-
copyWith(
{List< LatLng> ? points, List<List< ? holes, bool? clickable, Color? fillColor, bool? geodesic, Color? strokeColor, double? strokeWidth, bool? visible, double? zIndex}) → PolygonOptionsLatLng> > - Create copy of PolygonOptions with specified parameters.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override