waitFuturesNullable method

FutureOr<List<T?>> waitFuturesNullable()

Wait all elements that are Future.

Implementation

FutureOr<List<T?>> waitFuturesNullable() {
  var futures = selectFuturesNullable();
  if (futures.isEmpty) {
    return <T?>[];
  } else {
    return Future.wait(futures);
  }
}