onStateChange property
This function returns the current state of the widget and can be used to implement changes on state change. There are total of 5 states namely: initial, preTimerRunning, timerRunning, pausedTimer, timerCompleted.
Implementation
final Function(TimerState state)? onStateChange;