onDispose property

void Function()? onDispose
final

The callback that is called when the ViewModel is disposed

Implementation

final void Function()? onDispose;