Polygon constructor
Polygon(
- List latlngs, {
- bool? stroke,
- Color? strokeColor,
- double? strokeWidth,
- double? strokeOpacity,
- StrokeCap? strokeCap,
- StrokeJoin? strokeJoin,
- PathFillType? pathFillType,
- Color? fillColor,
- double? fillOpacity,
- List<
Color> ? gradientStrokeColors, - List<
double> ? gradientStrokeStops, - List<
Color> ? gradientFillColors, - List<
double> ? gradientFillStops, - bool? isDotted,
- List<
List< ? holes = const [],LatLng> > - bool? withHoles,
- 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,
);