isError property

bool get isError

True if the result is an error

Implementation

bool get isError => _error != null;