onDispose property

void Function()? onDispose
final

An optional function to call when the widget is disposed.

Implementation

final void Function()? onDispose;