BuiltList<E>.from constructor

BuiltList<E>.from(
  1. Iterable iterable
)

Instantiates with elements from an Iterable.

Implementation

factory BuiltList.from(Iterable iterable) {
  if (iterable is _BuiltList && iterable.hasExactElementType(E)) {
    return iterable as BuiltList<E>;
  } else {
    return _BuiltList<E>.from(iterable);
  }
}