dispose method

void dispose()

Implementation

void dispose() {
  for (final ViewModel viewModel in _viewModels.values) {
    viewModel.onDispose();
  }
  _viewModels.clear();
}