update method

void update(
  1. PolygonOptions options
)

Updates the options of the wrapped gmaps.Polygon object.

This cannot be called after remove.

Implementation

void update(gmaps.PolygonOptions options) {
  assert(_polygon != null, 'Cannot `update` Polygon after calling `remove`.');
  _polygon!.options = options;
}