onClose method
void
onClose()
Handles cleanup and disposal operations.
This method is called when the widget is disposed.
Implementation
void onClose() {
config.onDispose?.call();
Get.clearTranslations();
RouterReportManager.instance.clearRouteKeys();
RouterReportManager.dispose();
Get.resetInstance(clearRouteBindings: true);
_controller = null;
ambiguate(Engine.instance)!.removeObserver(this);
}