toVector method
Converts this list to a corresponding vector.
If format
is specified, the list is copied into a mutable vector of the
selected format; otherwise a view onto this list is provided.
Implementation
Vector<T> toVector({DataType<T>? dataType, VectorFormat? format}) =>
Vector.fromList(dataType ?? DataType.fromType<T>(), this, format: format);