isError property

bool get isError

Returns true if this result represents an error/failure case, false otherwise. This is equivalent to checking if the result is an instance of Failure.

Implementation

bool get isError => this is Failure<T>;