onDestroy method - MapViewLifecycleListener class - mapview library - Dart API
onDestroy
onDestroy abstract method
Called when the map view to which this is attached to is destroyed.
After this is called, no other MapViewLifecycleListener method will be invoked. This should be used to make sure all resources are freed.
Implementation
void onDestroy();