onDispose property

void Function(T)? onDispose
final

Runs when the state is disposed.

Implementation

final void Function(T)? onDispose;