onDispose property
void Function()?
onDispose
final
Callback called when the widget is disposed.
Implementation
final void Function()? onDispose;
Callback called when the widget is disposed.
final void Function()? onDispose;