setError method

void setError(
  1. bool hasError
)

Implementation

void setError(bool hasError) {
  this.hasError = hasError;
  notifyListeners();
}