refresh<T> method

T refresh<T>(
  1. Refreshable<T> state
)

Refresh the value of the provider within the current ProviderContainer obtained from the surrounding ProviderScope.

Implementation

T refresh<T>(Refreshable<T> state) {
  final container = ProviderScope.containerOf(this, listen: false);
  return container.refresh(state);
}