streamCombine<T> function

Stream<T> streamCombine<T>(
  1. List values
)

Combine the values into an single Stream<T>. values is a list of FutureOr<T> | Stream<T>.

Implementation

Stream<T> streamCombine<T>(
    List<dynamic /*FutureOr<T> | FutureOr<Stream<T>>*/ > values) {
  if (!values.every((dynamic v) => v is FutureOr<T> || v is Stream<T>)) {
    throw TypeError();
  }
  return _combinedStream<T>(values);
}