Polyline class

A Polyline made up of multiple points on the map

Constructors

Polyline({required String id, required List<LatLng> points, void onTap()?, Color? color = Colors.black, int width = 10, Color outlineColor = Colors.black, bool isDottedLine = false, int outlineWidth = 0, List<double> intervals = const <double>[], double zIndex = 0.0})
const

Properties

color Color?
The Color of the line
final
hashCode int
The hash code for this object.
no setteroverride
id String
Uniquely identifies a Polyline.
final
intervals List<double>
The distance between the Polylines.
final
isDottedLine bool
The style of the line.
final
onTap → (void Function()?)
A void Function which is called whenever a Polyline is tapped.
final
outlineColor Color
The 'Outline Color' of the line. The default color is black.
final
outlineWidth int
Width of the outline of the polyline.
final
points List<LatLng>
A List of LatLng points that make up the polyline's shape.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
Width of the polyline, used to define the width of the line segment to be drawn.
final
zIndex double
Order that the polyline is drawn
final

Methods

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

Operators

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