removeFill method

Future<void> removeFill(
  1. Fill fill
)

Removes the specified fill from the map. The fill must be a current member of the fills set.

Change listeners are notified once the fill has been removed on the platform side.

The returned Future completes once listeners have been notified.

Implementation

Future<void> removeFill(Fill fill) async {
  assert(_fills[fill.id] == fill);
  await _mapboxGlPlatform.removeFill(fill.id);
  _fills.remove(fill.id);

  notifyListeners();
}