setLoading method

void setLoading()

Set loading state

Implementation

void setLoading() {
  _state = ButtonState.loading;
  _disabled = true;
}