onDispose property

void Function(A arg, T last)? onDispose
final

Disposes the resources when the state is disposed.

Implementation

final void Function(A arg, T last)? onDispose;