updateCircle method

Future<void> updateCircle(
  1. Circle circle,
  2. CircleOptions changes
)

Updates the specified circle with the given changes. The circle must be a current member of the circles set.

Change listeners are notified once the circle has been updated on the platform side.

The returned Future completes once listeners have been notified.

Implementation

Future<void> updateCircle(Circle circle, CircleOptions changes) async {
  assert(_circles[circle.id] == circle);
  await _mapboxGlPlatform.updateCircle(circle, changes);
  circle.options = circle.options.copyWith(changes);
  notifyListeners();
}