Polyline constructor

Polyline({
  1. required List<LatLng> points,
  2. Key? key,
  3. double strokeWidth = 1.0,
  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. bool isDotted = false,
  10. StrokeCap strokeCap = StrokeCap.round,
  11. StrokeJoin strokeJoin = StrokeJoin.round,
  12. bool useStrokeWidthInMeter = false,
})

Implementation

Polyline({
  required this.points,
  this.key,
  this.strokeWidth = 1.0,
  this.color = const Color(0xFF00FF00),
  this.borderStrokeWidth = 0.0,
  this.borderColor = const Color(0xFFFFFF00),
  this.gradientColors,
  this.colorsStop,
  this.isDotted = false,
  this.strokeCap = StrokeCap.round,
  this.strokeJoin = StrokeJoin.round,
  this.useStrokeWidthInMeter = false,
});