throttle method

DelayedStateNotifier<List<T>> throttle(
  1. Duration durationFn()
)

Buffers all incoming T events for a duration obtained via durationFn and emits them as a List<T> (unless there were none)

Implementation

DelayedStateNotifier<List<T>> throttle(Duration Function() durationFn) {
  return _FunctionalStateNotifier<T, List<T>>(this, name: 'throttle')
      .throttle(durationFn);
}