addFill method
Adds a fill to the map, configured using the specified custom options
.
Change listeners are notified once the fill has been added on the platform side.
The returned Future completes with the added fill once listeners have been notified.
Implementation
Future<Fill> addFill(FillOptions options, [Map? data]) async {
final FillOptions effectiveOptions =
FillOptions.defaultOptions.copyWith(options);
final fill = await _mapboxGlPlatform.addFill(effectiveOptions, data);
_fills[fill.id] = fill;
notifyListeners();
return fill;
}