streamOfNullableFuture<T> function Null safety

Stream<T> streamOfNullableFuture<T>(
  1. Future<T?>? nullable
)

Implementation

Stream<T> streamOfNullableFuture<T>(Future<T?>? nullable) {
  return nullable == null
      ? Stream.empty()
      : Stream.fromFuture(nullable).whereType<T>();
}