setError method

void setError(
  1. String? msg
)

Implementation

void setError(String? msg) {
  log(msg);
  _message = msg;
  isError = true;
}