Rectangle constructor

Rectangle(
  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. bool? isDotted,
  12. List<Color>? gradientStrokeColors,
  13. List<double>? gradientStrokeStops,
  14. List<Color>? gradientFillColors,
  15. List<double>? gradientFillStops,
  16. List<List<LatLng>>? holes,
  17. bool? withHoles,
  18. 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);
}