interval<T> static method

Interval<T> interval<T>({
  1. Duration duration = const Duration(seconds: 0),
  2. required StreamPredicate<Lifecycle<T>> after,
  3. required T emit,
  4. required StreamCondition stopWhen,
})

Implementation

static Interval<T> interval<T>(
        {Duration duration = const Duration(seconds: 0),
        required StreamPredicate<Lifecycle<T>> after,
        required T emit,
        required StreamCondition stopWhen}) =>
    Interval(duration, after: after, emit: emit, stopWhen: stopWhen);