DisposingFunc<T> typedef

FutureOr DisposingFunc (
  1. 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);