setError method

void setError()

Implementation

void setError() => setState(() {
      viewState = ViewState.error;
    });