DebounceStreamTransformer<T> class

Transforms a Stream so that will only emit items from the source sequence if a particular time span has passed without the source sequence emitting another item.

The Debounce Transformer filters out items emitted by the source Observable that are rapidly followed by another emitted item.

Interactive marble diagram

Example

new Observable.fromIterable([1, 2, 3, 4])
  .debounce(new Duration(seconds: 1))
  .listen(print); // prints 4
Inheritance

Constructors

DebounceStreamTransformer(Duration duration)

Properties

transformer StreamTransformer<T, T>
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

bind(Stream<T> stream) Stream<T>
Transforms the provided stream. [...]
override
cast<RS, RT>() StreamTransformer<RS, RT>
Provides a StreamTransformer<RS, RT> view of this stream transformer. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited