Polyline constructor

Polyline(
  1. List latlngs, {
  2. Color? strokeColor,
  3. double? strokeWidth,
  4. double? strokeOpacity,
  5. StrokeCap? strokeCap,
  6. StrokeJoin? strokeJoin,
  7. PathFillType? pathFillType,
  8. List<Color>? gradientStrokeColors,
  9. List<double>? gradientStrokeStops,
  10. bool? isDotted,
  11. dynamic data,
})

Implementation

Polyline(
  List<dynamic> latlngs, {
  this.strokeColor,
  this.strokeWidth,
  this.strokeOpacity,
  this.strokeCap,
  this.strokeJoin,
  this.pathFillType,
  this.gradientStrokeColors,
  this.gradientStrokeStops,
  this.isDotted,
  this.data,
}) : latlngs = latlngs.map((latlng) => LatLng.from(latlng)).toList();