hasErrors property

bool hasErrors

Indicates if there are errors. This isn't exactly the same as !isSuccess since it doesn't look at the state of the data.

Returns true if there are error messages, otherwise false

Implementation

bool get hasErrors {
  return errors.isNotEmpty;
}