addPolygon method

Future<void> addPolygon(
  1. {@required String name,
  2. @required List<LatLng> points,
  3. Color color = Colors.lightBlue,
  4. double borderWidth = 0.0,
  5. Color borderColor = const Color(0xFFFFFF00)}
)

Add a polygon on the map

Implementation

Future<void> addPolygon(
        {@required String name,
        @required List<LatLng> points,
        Color color = Colors.lightBlue,
        double borderWidth = 0.0,
        Color borderColor = const Color(0xFFFFFF00)}) =>
    _polygonsState.addPolygon(
        name: name,
        points: points,
        color: color,
        borderWidth: borderWidth,
        borderColor: borderColor);