startWith method Null safety
- T startValue
Prepends a value to the source Stream.
Example
Stream.fromIterable([2]).startWith(1).listen(print); // prints 1, 2
Implementation
Stream<T> startWith(T startValue) =>
transform(StartWithStreamTransformer<T>(startValue));