useStreamPromise<T> function

Promise<T> useStreamPromise<T>(
  1. Stream<T> stream
)

Implementation

Promise<T> useStreamPromise<T>(Stream<T> stream) {
  final snapshot = useStream(stream);
  return Promise.fromSnapshot(snapshot);
}