Rectangle constructor
Rectangle(
- List latlngs, {
- bool? stroke,
- Color? strokeColor,
- double? strokeWidth,
- double? strokeOpacity,
- StrokeCap? strokeCap,
- StrokeJoin? strokeJoin,
- PathFillType? pathFillType,
- Color? fillColor,
- double? fillOpacity,
- bool? isDotted,
- List<
Color> ? gradientStrokeColors, - List<
double> ? gradientStrokeStops, - List<
Color> ? gradientFillColors, - List<
double> ? gradientFillStops, - List<
List< ? holes,LatLng> > - bool? withHoles,
- dynamic data,
Implementation
Rectangle(
List<dynamic> latlngs, {
bool? stroke,
Color? strokeColor,
double? strokeWidth,
double? strokeOpacity,
StrokeCap? strokeCap,
StrokeJoin? strokeJoin,
PathFillType? pathFillType,
Color? fillColor,
double? fillOpacity,
bool? isDotted,
List<Color>? gradientStrokeColors,
List<double>? gradientStrokeStops,
List<Color>? gradientFillColors,
List<double>? gradientFillStops,
List<List<LatLng>>? holes,
bool? withHoles,
dynamic data,
}) : super(
latlngs,
stroke: stroke,
strokeColor: strokeColor,
strokeWidth: strokeWidth,
strokeOpacity: strokeOpacity,
strokeCap: strokeCap,
strokeJoin: strokeJoin,
pathFillType: pathFillType,
fillColor: fillColor,
fillOpacity: fillOpacity,
isDotted: isDotted,
gradientStrokeColors: gradientStrokeColors,
gradientStrokeStops: gradientStrokeStops,
gradientFillColors: gradientFillColors,
gradientFillStops: gradientFillStops,
holes: holes,
withHoles: withHoles,
data: data,
) {
assert(latlngs.length == 2);
}