updateFill method
Updates the specified fill
with the given changes
. The fill must
be a current member of the fills set.
Change listeners are notified once the fill has been updated on the platform side.
The returned Future completes once listeners have been notified.
Implementation
Future<void> updateFill(Fill fill, FillOptions changes) async {
assert(_fills[fill.id] == fill);
await _mapboxGlPlatform.updateFill(fill, changes);
fill.options = fill.options.copyWith(changes);
notifyListeners();
}