addFills method

Future<List<Fill>> addFills(
  1. List<FillOptions> options, [
  2. List<Map>? data
])

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 circles = await _mapboxGlPlatform.addFills(options, data);
  circles.forEach((f) => _fills[f.id] = f);
  notifyListeners();
  return circles;
}