increment method

void increment()

Implementation

void increment() {
  emit(state.copyWith(count: state.count + 1));
}