endWith method

Stream<T> endWith (
  1. T endValue
)

Appends a value to the source Stream before closing.

Example

Stream.fromIterable([2]).endWith(1).listen(print); // prints 2, 1

Implementation

Stream<T> endWith(T endValue) =>
    transform(EndWithStreamTransformer<T>(endValue));