onStateChange property

(dynamic Function(TimerState state)?) onStateChange
final

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;