setError method

void setError (
  1. String error,
  2. {bool notify: true}
)

Implementation

void setError(String error, {bool notify = true}) {
  this.error = error;
  if(notify) notifyListeners();
}