clearPolylines method

Future<void> clearPolylines()

Removes all lines from the map added with the addPolyline or addPolylines methods.

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

The returned Future completes once listeners have been notified.

Implementation

Future<void> clearPolylines() async {
  await polylineManager!.clear();
  notifyListeners();
}