state property
GrockTimerState
state
Get the current state of the timer
Implementation
GrockTimerState get state {
if (_state._timer.isActive) {
return GrockTimerState.running;
} else if (_state._time.inSeconds == _state.widget.endTime!.inSeconds) {
return GrockTimerState.completed;
} else {
return GrockTimerState.stopped;
}
}