fullRefresh<T> method
- ProviderBase<
AsyncValue< providerT> >
Perform a full refresh of the provider
If the underlying value of the provider is currently loading, it will wait for the loading to finish, and then it will refresh the provider.
Implementation
Future<T> fullRefresh<T>(ProviderBase<AsyncValue<T>> provider) async {
if (read(provider).isLoading) {
await read(provider.commonFuture);
}
return refresh(provider.commonFuture);
}