Polygon constructor

Polygon(
  1. {List<LatLng> points,
  2. Color color = const Color(0xFF00FF00),
  3. double borderStrokeWidth = 0.0,
  4. Color borderColor = const Color(0xFFFFFF00),
  5. bool isDotted = false}
)

Implementation

Polygon({
  this.points,
  this.color = const Color(0xFF00FF00),
  this.borderStrokeWidth = 0.0,
  this.borderColor = const Color(0xFFFFFF00),
  this.isDotted = false,
}) {
  boundingBox = LatLngBounds.fromPoints(points);
}