isReloading property

bool get isReloading

Whether the associated provider was recomputed because of a dependency change (using Ref.watch), after at least one value/error was emitted.

If a provider rebuilds because one of its dependencies changed (using Ref.watch), then isReloading will be true. If a provider rebuilds only due to Ref.invalidate/Ref.refresh, then isReloading will be false (and isRefreshing will be true).

See also isRefreshing for manual provider rebuild.

Implementation

bool get isReloading => (hasValue || hasError) && this is AsyncLoading;