addFills method
Adds multiple fills to the map, configured using the specified custom
options
.
Change listeners are notified once the fills has been added on the platform side.
The returned Future completes with the added fills once listeners have been notified.
Implementation
Future<List<Fill>> addFills(List<FillOptions> options,
[List<Map>? data]) async {
final fills = [
for (var i = 0; i < options.length; i++)
Fill(getRandomString(), FillOptions.defaultOptions.copyWith(options[i]),
data?[i])
];
await fillManager!.addAll(fills);
notifyListeners();
return fills;
}