DisposingFunc<T> typedef
DisposingFunc<T> =
FutureOr Function(T param)
Signature for disposing function
because closures like (x){}
have a return type of Null we don't use FutureOr<void>
Implementation
typedef DisposingFunc<T> = FutureOr Function(T param);