throttleTime method

Observable<T> throttleTime(
  1. Duration duration, {
  2. bool leading = true,
  3. bool trailing = true,
  4. Scheduler? scheduler,
})

Emits a value from this Observable, then ignores values for duration.

Implementation

Observable<T> throttleTime(Duration duration,
        {bool leading = true, bool trailing = true, Scheduler? scheduler}) =>
    throttle<int>(
        constantFunction1(timer(delay: duration, scheduler: scheduler)),
        leading: leading,
        trailing: trailing);