increment method

void increment()

Add 1 to the current state.

Implementation

void increment() => emit(state + 1);