startWith method

Stream<T> startWith(
  1. T initial
)

Emits initial before any values or errors from the this stream.

If this stream is a broadcast stream the result will be as well.

Implementation

Stream<T> startWith(T initial) =>
    startWithStream(Future.value(initial).asStream());