DisposeCallback typedef
Callback invoked to dispose of or cancel a registered effect.
If id is provided, disposes the effect registered under that ID.
If shouldCancel is true (the default), the underlying operation
is cancelled.
Implementation
typedef DisposeCallback = void Function({EffectID? id, bool shouldCancel});