increment method

void increment()

Implementation

void increment() {
  final currentValue = state.data ?? 0;
  setSuccess(currentValue + 1);
}