isError property

Future<bool> get isError

Asynchronously checks if this result represents an error.

Returns true if the result is an Error, false if it's a Success.

Implementation

Future<bool> get isError async => (await this) is Error<S, E>;