CoffeeMapboxPolyline class

Represents a polyline on the map with mutable properties.

A polyline is a series of connected points with customizable stroke, color, and optional border.

Constructors

CoffeeMapboxPolyline({String? id, required List<LatLng> points, double strokeWidth = 2.0, Color color = const Color(0xFF000000), double borderStrokeWidth = 0.0, Color? borderColor})
Creates a new Polyline.

Properties

borderColor ↔ Color?
Optional border color for the polyline.
getter/setter pair
borderStrokeWidth ↔ double
Optional border width for the polyline.
getter/setter pair
color ↔ Color
The color of the polyline stroke.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
id ↔ String
Unique identifier for this polyline. Automatically generated if not provided.
getter/setter pair
points ↔ List<LatLng>
The list of points (LatLng) that define the polyline path.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strokeWidth ↔ double
The width of the polyline stroke in logical pixels.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts the polyline to a JSON-compatible map.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited