Polyline<R extends Object> class

Polyline (aka. LineString) class, to be used for the PolylineLayer.

Constructors

Polyline({required List<LatLng> points, double strokeWidth = 1.0, StrokePattern pattern = const StrokePattern.solid(), Color color = const Color(0xFF00FF00), double borderStrokeWidth = 0.0, Color borderColor = const Color(0xFFFFFF00), List<Color>? gradientColors, List<double>? colorsStop, StrokeCap strokeCap = StrokeCap.round, StrokeJoin strokeJoin = StrokeJoin.round, bool useStrokeWidthInMeter = false, R? hitValue})
Create a new Polyline used for the PolylineLayer.

Properties

borderColor → Color
The Color of the Polyline border.
final
borderStrokeWidth → double
The width of the stroke with of the line border. Defaults to 0.0 (disabled).
final
boundingBox → LatLngBounds
Get the bounding box of the points (cached).
no setter
color → Color
The color of the line stroke.
final
colorsStop → List<double>?
The stops for the gradient colors.
final
gradientColors → List<Color>?
The List of colors in case a gradient should get used.
final
hashCode → int
The hash code for this object.
no setteroverride
hitValue → R?
Value to notify layer's hitNotifier with (such as PolygonLayer.hitNotifier)
final
pattern → StrokePattern
Determines whether the line should be solid, dotted, or dashed, and the exact characteristics of each
final
points → List<LatLng>
The list of coordinates for the Polyline.
final
renderHashCode → int
A for rendering purposes optimized hashCode function.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strokeCap → StrokeCap
Styles to use for line endings.
final
strokeJoin → StrokeJoin
Styles to use for line segment joins.
final
strokeWidth → double
The width of the stroke
final
useStrokeWidthInMeter → bool
Set to true if the width of the stroke should have meters as unit.
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