waitFuturesAndReturnValue<V> method

Future<V> waitFuturesAndReturnValue<V>(
  1. V value
)

Waits this Futures and return value.

Implementation

Future<V> waitFuturesAndReturnValue<V>(V value) {
  if (isEmpty) {
    return Future.value(value);
  } else {
    return Future.wait(this).then((_) => value);
  }
}