hasErrorOr method

bool hasErrorOr([
  1. bool? condition
])

Returns the error status of the Controller and checks if condition valid

Implementation

bool hasErrorOr([bool? condition]) =>
    !isBusy &&
    (hasError || ((condition ?? true) && (isReady || isInitialised)));