onDispose method

FutureOr<void> onDispose()
inherited

Called when the module is being disposed.

Override this method to:

  • Save important state
  • Close connections
  • Release resources
  • Perform cleanup

Note: Basic cleanup (DI container, events, etc.) is handled automatically.

Implementation

FutureOr<void> onDispose() async {}