Polygon constructor

Polygon(
  1. List latlngs, {
  2. bool? stroke,
  3. Color? strokeColor,
  4. double? strokeWidth,
  5. double? strokeOpacity,
  6. StrokeCap? strokeCap,
  7. StrokeJoin? strokeJoin,
  8. PathFillType? pathFillType,
  9. Color? fillColor,
  10. double? fillOpacity,
  11. List<Color>? gradientStrokeColors,
  12. List<double>? gradientStrokeStops,
  13. List<Color>? gradientFillColors,
  14. List<double>? gradientFillStops,
  15. bool? isDotted,
  16. List<List<LatLng>>? holes = const [],
  17. bool? withHoles,
  18. dynamic data,
})

Implementation

Polygon(
  List<dynamic> latlngs, {
  this.stroke,
  Color? strokeColor,
  double? strokeWidth,
  double? strokeOpacity,
  StrokeCap? strokeCap,
  StrokeJoin? strokeJoin,
  PathFillType? pathFillType,
  this.fillColor,
  this.fillOpacity,
  List<Color>? gradientStrokeColors,
  List<double>? gradientStrokeStops,
  this.gradientFillColors,
  this.gradientFillStops,
  bool? isDotted,
  this.holes = const [],
  this.withHoles,
  dynamic data,
}) : super(
        latlngs,
        strokeColor: strokeColor,
        strokeWidth: strokeWidth,
        strokeOpacity: strokeOpacity,
        strokeCap: strokeCap,
        strokeJoin: strokeJoin,
        pathFillType: pathFillType,
        gradientStrokeColors: gradientStrokeColors,
        gradientStrokeStops: gradientStrokeStops,
        isDotted: isDotted,
        data: data,
      );