isRefreshing property

bool get isRefreshing

Whether a loading state is refreshing previously loaded data.

Implementation

bool get isRefreshing =>
    this is AsyncLoading<T> && (this as AsyncLoading<T>).previous != null;