updatePolygon 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> updatePolygon(Polygon fill, PolygonOptions changes) async {
fill.options = fill.options.copyWith(changes);
await polygonManager!.set(fill);
notifyListeners();
}