Polyline class

Represents a polyline on the map. A polyline is a list of points, where line segments are drawn between consecutive points. The polyline can be styled with a color, width, and alpha value.

Constructors

Polyline.new({int? id, required List<LatLng> points, Color? color, double? width, double? alpha})
Each polyline must have at least two points.
Polyline.fromJson(Map<String, dynamic> json)
factory

Properties

alpha double?
final
color Color?
final
hashCode int
The hash code for this object.
no setterinherited
id int?
getter/setter pair
points List<LatLng>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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