setDuration method
Method to set the duration to use on timer
Implementation
void setDuration(Duration? duration) {
_duration = duration;
}
Method to set the duration to use on timer
void setDuration(Duration? duration) {
_duration = duration;
}