onDispose property
void Function(T last, A arg)?
onDispose
final
Runs when the state is disposed.
Implementation
final void Function(T last, A arg)? onDispose;
Runs when the state is disposed.
final void Function(T last, A arg)? onDispose;