Polyline<R extends Object> constructor

Polyline<R extends Object>({
  1. required List<LatLng> points,
  2. double strokeWidth = 1.0,
  3. StrokePattern pattern = const StrokePattern.solid(),
  4. Color color = const Color(0xFF00FF00),
  5. double borderStrokeWidth = 0.0,
  6. Color borderColor = const Color(0xFFFFFF00),
  7. List<Color>? gradientColors,
  8. List<double>? colorsStop,
  9. StrokeCap strokeCap = StrokeCap.round,
  10. StrokeJoin strokeJoin = StrokeJoin.round,
  11. bool useStrokeWidthInMeter = false,
  12. 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,
});