Returns true if the state is AsyncData.
true
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);