startWith method

Observable<T> startWith (
  1. T startValue
)
inherited

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(StartWithStreamTransformer<T>(startValue));