allAsList property

List<FutureOr<T>> get allAsList

Returns all elements in a List. Ensures that an Iterable is fully constructed.

Implementation

List<FutureOr<T>> get allAsList {
  var self = this;

  if (self is List<FutureOr<T>>) {
    return self;
  } else {
    return self.toList();
  }
}