dispose method
void
dispose()
Disposes of this controller and its resources.
You won't be able to call many of the methods on this controller after
calling dispose!
Implementation
void dispose() {
_widget = null;
_googleMap = null;
_circlesController = null;
_heatmapsController = null;
_polygonsController = null;
_polylinesController = null;
_markersController = null;
_clusterManagersController = null;
_tileOverlaysController = null;
_groundOverlaysController = null;
_onClickSubscription?.cancel();
_onClickSubscription = null;
_onRightClickSubscription?.cancel();
_onRightClickSubscription = null;
_onBoundsChangedSubscription?.cancel();
_onBoundsChangedSubscription = null;
_onIdleSubscription?.cancel();
_onIdleSubscription = null;
_streamController.close();
}