requireNonNull method

AsyncValue<T> requireNonNull()

Requires that the underlying value be non-null

If the underlying value is null but isLoading is false and hasError is also false, then this method will throw.

Implementation

AsyncValue<T> requireNonNull() => cast<T>();