startCounDown method

void startCounDown(
  1. int minutes,
  2. VoidCallback? finished
)

Implementation

void startCounDown(int minutes, VoidCallback? finished) {
  totalSecond = minutes * 60;
  onFinished = finished;
  startTimer();
}