setState method

  1. @protected
void setState(
  1. ButtonState value
)

Implementation

@protected
void setState(ButtonState value) {
  if (_state == value) {
    return;
  }
  _state = value;
  _updateSkin();
  updateLabel();
  onChangeState?.call(_state);
}