startTimer method
void
startTimer()
start the timer
Implementation
void startTimer() {
const oneSec = Duration(seconds: 1);
testTimer = Timer.periodic(
oneSec,
(Timer timer) => setState(
() {
if (seconds < 0) {
timer.cancel();
} else {
seconds = seconds + 1;
}
},
),
);
}