increaseCountAction function

  1. @JuneViewAction()
dynamic increaseCountAction()

Implementation

@JuneViewAction()
increaseCountAction() {
  var state = SampleViewState(); // do not change this line
  state.counter = state.counter + 1;
  updateState(() {});
}