updateTimer method

void updateTimer(
  1. int time
)

Implementation

void updateTimer(int time) {
  state = state.copyWith(timeLeft: time);
}