TimerSignal constructor
TimerSignal({})
Emit recurring TimerSignalEvent aka AsyncSignal
Implementation
TimerSignal({
required this.every,
String super.debugLabel = 'Timer',
super.cancelOnError,
super.autoDispose,
}) : super(
() => Stream<TimerSignalEvent>.periodic(
every,
(c) => _emit(c + 1),
),
initialValue: _emit(0),
);