endWith method Null safety
- 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));