setError method

void setError(
  1. bool error
)

Implementation

void setError(bool error) {
  setState(() {
    this.error = error;
  });
}