TimerFactory typedef
A function signature for creating timers.
timerFactory allows customizing timer creation, useful for testing or
specialized timing behavior. Defaults to standard Timer.new.
Implementation
typedef TimerFactory =
Timer Function(Duration duration, void Function() callback);