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