refresh method

  1. @mustCallSuper
void refresh()

Forces update and notifies to listeners that it did update

Implementation

@mustCallSuper
void refresh() {
  assert(!_isDisposed, "You can refresh when it's been disposed");

  final _isUpdatingTmp = _isUpdating;
  _isUpdating = true;

  _notify(Lifecycle.didUpdate);

  if (_isUpdatingTmp) return;
  _isUpdating = false;
}