setTimer method

void setTimer(
  1. int seconds
)

Implementation

void setTimer(int seconds) {
  lastTime = seconds;

  _timer = Timer(Duration(seconds: lastTime), () {
    widget.onTimerEnd();
  });
}