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;
for (final StreamSubscription<dynamic> sub in _subscriptions) {
sub.cancel();
}
_subscriptions.clear();
}
}