startWith method

Observable<T> startWith (T startValue)

Prepends a value to the source Observable.

Example

new Observable.just(2).startWith(1).listen(print); // prints 1, 2

Implementation

Observable<T> startWith(T startValue) =>
    transform(new StartWithStreamTransformer<T>(startValue));