DelayWhenStreamTransformer<T> constructor

DelayWhenStreamTransformer<T>(
  1. Stream<void> itemDelaySelector(
    1. T value
    ), {
  2. Stream<void>? listenDelay,
})

Constructs a StreamTransformer which delays the emission of items from the source Stream by a given time span determined by the emissions of another Stream.

Implementation

DelayWhenStreamTransformer(this.itemDelaySelector, {this.listenDelay});