watchLoading method

bool watchLoading()

Watches and returns whether it's currently loading.

Implementation

bool watchLoading() {
  throwIfDisposed('watch loading');
  return _state.watch() == AsyncState.loading;
}