sampleTime method
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));