sampleTime method

Observable<T> sampleTime(
  1. Duration duration, {
  2. Scheduler? scheduler,
})

Emits the most recently emitted value from this Observable within periodic time intervals.

Implementation

Observable<T> sampleTime(Duration duration, {Scheduler? scheduler}) =>
    sample<int>(
        timer(delay: duration, period: duration, scheduler: scheduler));