toVector method

Vector<T> toVector({
  1. DataType<T>? dataType,
  2. VectorFormat? format,
})

Copies this iterable into a new Vector.

Implementation

Vector<T> toVector({DataType<T>? dataType, VectorFormat? format}) =>
    Vector<T>.fromIterable(dataType ?? DataType.fromType<T>(), this,
        format: format);