hasCompletedWithError property
bool
get
hasCompletedWithError
True if this CompletableFuture has completed with an error and not a value.
If this is true, then result is of type CompletableFutureError.
This is the opposite of hasCompletedWithValue.
Implementation
bool get hasCompletedWithError => _result is CompletableFutureError<T>;