onDispose property
void Function()?
onDispose
final
An optional function to call when the widget is disposed.
Implementation
final void Function()? onDispose;
An optional function to call when the widget is disposed.
final void Function()? onDispose;