toSignal method

TimerSignal toSignal({
  1. String debugLabel = 'Timer',
  2. bool? cancelOnError,
  3. bool autoDispose = false,
})

Expose Duration as a TimerSignal

Implementation

TimerSignal toSignal({
  String debugLabel = 'Timer',
  bool? cancelOnError,
  bool autoDispose = false,
}) {
  return TimerSignal(
    every: this,
    debugLabel: debugLabel,
    cancelOnError: cancelOnError,
    autoDispose: autoDispose,
  );
}