Dispose typedef
Dispose =
FutureOr<void> Function()
Function which does disposing when called.
Even though this function is asynchronous, it should finish fast. The longer it executes, the longer the call to DisposeScope.dispose takes.
Implementation
typedef Dispose = FutureOr<void> Function();