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();
  config.snackBarQueue.disposeControllers();
  RouterReportManager.instance.clearRouteKeys();
  RouterReportManager.dispose();
  Get.resetInstance();
  _controller = null;
  ambiguate(Engine.instance)!.removeObserver(this);
}