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) =>
    EndWithStreamTransformer<T>(endValue).bind(this);