CoffeeMapboxPolygon class
Represents a polygon on the map with customizable fill and border.
Constructors
-
CoffeeMapboxPolygon({String? id, required List<
LatLng> points, Color fillColor = const Color(0x55000000), Color? borderColor}) -
Creates a new
Polygon.
Properties
- borderColor ↔ Color?
-
Optional border color for the polygon.
getter/setter pair
- fillColor ↔ Color
-
The fill color of the polygon.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
Unique identifier for this polygon.
Automatically generated if not provided.
getter/setter pair
-
points
↔ List<
LatLng> -
The list of points (
LatLng) that define the polygon.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the polygon to a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited