clearPolygons method

Future<void> clearPolygons()

Removes all fills from the map added with the addPolygon or addPolygons methods.

Change listeners are notified once all fills have been removed on the platform side.

The returned Future completes once listeners have been notified.

Implementation

Future<void> clearPolygons() async {
  await polygonManager!.clear();

  notifyListeners();
}