hasValue property

bool get hasValue

Returns true if the state is AsyncData.

Implementation

bool get hasValue =>
    this is AsyncData<T> ||
    (this is AsyncLoading<T> && (this as AsyncLoading<T>).previous != null) ||
    (this is AsyncError<T> && (this as AsyncError<T>).previous != null);