Polyline<R extends Object> constructor
Polyline<R extends Object> ({
- 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.
Implementation
Polyline({
required this.points,
this.strokeWidth = 1.0,
this.pattern = const StrokePattern.solid(),
this.color = const Color(0xFF00FF00),
this.borderStrokeWidth = 0.0,
this.borderColor = const Color(0xFFFFFF00),
this.gradientColors,
this.colorsStop,
this.strokeCap = StrokeCap.round,
this.strokeJoin = StrokeJoin.round,
this.useStrokeWidthInMeter = false,
this.hitValue,
});