hasError method

bool hasError()

Returns whether the status represents an error.

Implementation

bool hasError() {
  return errorCode?.isNotEmpty ?? false;
}