onDispose property
void Function(T last)?
onDispose
final
Disposes the resources when the state is disposed.
Implementation
final void Function(T last)? onDispose;
Disposes the resources when the state is disposed.
final void Function(T last)? onDispose;