isError property

bool get isError

Whether this result is an Error.

Implementation

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