remove method

void remove()

Disposes of the currently wrapped gmaps.Polygon.

Implementation

void remove() {
  if (_polygon != null) {
    _polygon!.visible = false;
    _polygon!.map = null;
    _polygon = null;
  }
}