onDispose method

void onDispose(
  1. T viewModel
)

Fires when the ViewModel is disposed

Useful when working with a form on the view to dispose the form.

Implementation

void onDispose(T viewModel) {}