bind method

  1. @override
Stream<T> bind(
  1. Stream<T> stream
)
override

Stream values are debounced by calling the _addEvent target through Debounce.duration. The new stream will emit the debounced values.

Implementation

@override
Stream<T> bind(Stream<T> stream) {
  stream.listen((event) {
    Debounce.duration(duration, _addEvent, [event]);
  });
  return controller.stream;
}