toList method

List<T> toList()

Creates an unmodifiable List from the current IVector instance.

Implementation

List<T> toList() {
  if (size == 0) return List.unmodifiable(<T>[]);
  return VectorHelper(
    _creator,
    _enumCreator,
    _intType,
    getMany,
    size,
  ).toList();
}