RiverpodContextExtension extension
Extensions on BuildContext that enable riverpod-related functionality
- on
Methods
-
asyncRefresh<
T> (ProviderBase< AsyncValue< provider) → Future<T> >void> - Refresh a future provider in a safe manner. This method returns instantly if the underlying value of the provider is loading.
-
fullRefresh<
T> (ProviderBase< AsyncValue< provider) → Future<T> >T> - Perform a full refresh of the provider
-
read<
T> (ProviderListenable< T> provider) → T - Read the value of the provider from the current ProviderContainer obtained from the surrounding ProviderScope.
-
refresh<
T> (Refreshable< T> state) → T - Refresh the value of the provider within the current ProviderContainer obtained from the surrounding ProviderScope.