MapPolylineDashRepresentation.withGapColor constructor - MapPolylineDashRepresentation - mapview library - Dart API
MapPolylineDashRepresentation.withGapColor constructor
- 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.
At map measures smaller than the smallest map measure in the lineWidth,
dashLength and gapLength, the value used for rendering is constant
and equal to the value given for the smallest map measure in the
respective MapMeasureDependentRenderSize object.
At map measures bigger than the biggest map measure in the lineWidth,
dashLength and gapLength, the value used for rendering is constant
and equal to the value given for the biggest map measure in the
respective MapMeasureDependentRenderSize object.
At map measures between two nearest given map measures, the values are linearly interpolated between values given for these map measures.
For MapMeasureKind only MapMeasureKind.zoomLevel is supported.
For RenderSizeUnit only RenderSizeUnit.pixels is supported.
All sizes must not be 0 (MapMeasureDependentRenderSize.sizes with all values set to 0.0).
-
lineWidthThe width of the polyline depending on the map measure. -
dashLengthThe dash length of the polyline depending on the map measure. -
gapLengthThe gap length of the polyline depending on the map measure. -
dashColorThe color of the dashes. -
gapColorThe color of the gaps.
Throws MapPolylineRepresentationInstantiationException. In case of invalid input parameters.
Implementation
factory MapPolylineDashRepresentation.withGapColor(MapMeasureDependentRenderSize lineWidth, MapMeasureDependentRenderSize dashLength, MapMeasureDependentRenderSize gapLength, ui.Color dashColor, ui.Color gapColor) => $prototype.withGapColor(lineWidth, dashLength, gapLength, dashColor, gapColor);