dispose method

Called when BaseView with this ViewModel is removed from the tree permanently. Should be used for preparation to be garbage collected.

Implementation

@protected
@mustCallSuper
@visibleForTesting
void dispose() {
  log('ViewModel<$runtimeType> dispose');
  _context = null;
}