isRefreshing property

bool isRefreshing

Whether the associated provider was forced to recompute even though none of its dependencies has changed, after at least one value/error was emitted.

This is usually the case when rebuilding a provider with either Ref.invalidate/Ref.refresh.

If a provider rebuilds because one of its dependencies changes (using Ref.watch), then isRefreshing will be false, and instead isReloading will be true.

Implementation

bool get isRefreshing =>
    isLoading && (hasValue || hasError) && this is! AsyncLoading;