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 effectiveOptions = FillOptions.defaultOptions.copyWith(options);
final fill = Fill(getRandomString(), effectiveOptions, data);
await fillManager!.add(fill);
notifyListeners();
return fill;
}