isAllFuture property

bool get isAllFuture

Returns true if all elements are a Future.

Implementation

bool get isAllFuture {
  if (this is Iterable<Future<T>>) return true;
  if (this is Iterable<T> && _isNotFuture(T)) return false;

  for (var e in this) {
    if (e is! Future) return false;
  }
  return true;
}