MapPolylineDashRepresentation class abstract
Represents a dash pattern for map polyline where the dash can be rendered as a colored line and the gap can be either empty or colored.
The length of the dash and gap are set independently, allowing for patterns
like ' — — — —' (dash length = gap length) or ' ——— ——— ———' (dash length != gap length).
- Implemented types
Constructors
- MapPolylineDashRepresentation(MapMeasureDependentRenderSize lineWidth, MapMeasureDependentRenderSize dashLength, MapMeasureDependentRenderSize gapLength, Color dashColor)
-
Creates a representation for a dashed line.
factory
- MapPolylineDashRepresentation.withGapColor(MapMeasureDependentRenderSize lineWidth, MapMeasureDependentRenderSize dashLength, MapMeasureDependentRenderSize gapLength, Color dashColor, Color gapColor)
-
Creates a representation for a dashed line with both dash and the gap being colored.
factory
Properties
- dashColor → Color
-
The color of the dashes of the polyline.
Gets the color of the dashes of the polyline.
no setter
- dashLength → MapMeasureDependentRenderSize
-
The dash length of the polyline depending on the map measure.
At map measures smaller than smallest map measure in the
dashLengthline width is constant and equal to the width given for the smallest map measure in thedashLength.no setter - gapColor → Color?
-
The color for the gaps of the polyline. The default value is
nulland no color is used. Gets the color for the gaps of the polyline. Returnsnullif no color is used.no setter - gapLength → MapMeasureDependentRenderSize
-
The gap length of the polyline depending on the map measure.
At map measures smaller than smallest map measure in the
gapLengthline width is constant and equal to the width given for the smallest map measure in thegapLength.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- lineWidth → MapMeasureDependentRenderSize
-
The width of the polyline depending on the map measure.
At map measures smaller than smallest map measure in the
lineWidthline width is constant and equal to the width given for the smallest map measure in thelineWidth.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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.
inherited