isError property

bool get isError

Returns true if this is a Result.error.

Implementation

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