PolylineOptions class Navigation View Map View

Defines PolylineOptions for a polyline.

Annotations

Constructors

PolylineOptions.new({List<LatLng>? points = const <LatLng>[], bool? clickable = false, bool? geodesic = false, Color? strokeColor = Colors.black, StrokeJointType? strokeJointType, List<PatternItem>? strokePattern, double? strokeWidth = 10, bool? visible = true, double? zIndex = 0, List<StyleSpan>? spans = const <StyleSpan>[]})
Initialize PolylineOptions object.
const

Properties

clickable bool?
Specifies whether this polyline is clickable.
final
geodesic bool?
Specifies whether to draw each segment of this polyline as a geodesic.
final
hashCode int
The hash code for this object.
no setteroverride
points List<LatLng>?
Vertices of the polyline to be drawn.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spans List<StyleSpan>?
Specifies the style for a region in a polyline.
final
strokeColor Color?
Specifies the polyline's stroke color, as 32-bit ARGB.
final
strokeJointType StrokeJointType?
Specifies the joint type for all vertices of the polyline's outline.
final
strokePattern List<PatternItem>?
Specifies a stroke pattern for the polyline's outline.
final
strokeWidth double?
Specifies the polyline's stroke width, in display pixels.
final
visible bool?
Specifies the visibility for the polyline.
final
zIndex double?
Specifies the polyline's zIndex, i.e., the order in which it will be drawn.
final

Methods

copyWith({List<LatLng>? points, bool? clickable, bool? geodesic, Color? strokeColor, StrokeJointType? strokeJointType, List<PatternItem>? strokePattern, double? strokeWidth, bool? visible, double? zIndex, List<StyleSpan>? spans}) PolylineOptions
Create copy of PolylineOptions 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.
inherited

Operators

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