disposeAsync method
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
Implementation
@override
Future<void> disposeAsync() {
if (_serviceScope is AsyncDisposable) {
return (_serviceScope as AsyncDisposable).disposeAsync();
}
_serviceScope.dispose();
return Future.value();
}