increment method

void increment()

Implementation

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