onDispose method
Resource cleanup when the adapter is being removed.
Use this to close connections, flush buffers, or release resources.
di The dependency injection container instance.
Implementation
@mustCallSuper
Future<void> onDispose(AirDI di) async {
_state = AdapterLifecycleState.disposing;
debugPrint('[Adapter:$id] onDispose');
_state = AdapterLifecycleState.disposed;
}