error method

void error()

Implementation

void error() {
  value = ButtonState.error;
}