refreshAwait method

Future<T> refreshAwait(
  1. K key, {
  2. bool force = false,
  3. bool alwaysTouch = false,
})

Refreshes the ResultNotifier with the specified key, if needed, and awaits the result.

See ResultNotifier.refreshAwait for more information.

Implementation

Future<T> refreshAwait(K key, {bool force = false, bool alwaysTouch = false}) {
  return getNotifier(key, shouldRefresh: true, force: force, alwaysTouch: alwaysTouch).future;
}