toList method

List<T> toList()

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

Implementation

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

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