operator + method
- Vector<
T> other
Concatenates two vectors. Guarantees memory safety by creating a new vector with the combined elements.
Implementation
Vector<T> operator +(Vector<T> other) {
final newList = List<T>.from(_data)..addAll(other._data);
return Vector<T>(newList);
}