toList method

List<T> toList()

Creates a List<T> from the IVector<T>.

Implementation

List<T> toList() {
  if (Size == 0) {
    return <T>[];
  }

  return VectorHelper(creator, GetMany, Size, allocator: allocator).toList();
}