initialize method

void initialize(
  1. String initialText
)

Initialize button state

Implementation

void initialize(String initialText) {
  _text = initialText;
  _state = ButtonState.idle;
  _disabled = false;
}