forward method

void forward(
  1. Stream<T> from
)

Forwards a stream to this one

Implementation

void forward(Stream<T> from) {
  registerDisposer(from.listen((data) {
    this.update(data);
  }, cancelOnError: false).cancel);
}