truncate method
Shortens the vector, keeping the first len elements and dropping the rest.
Implementation
@pragma('vm:prefer-inline')
void truncate(int newLen) => length = newLen;
Shortens the vector, keeping the first len elements and dropping the rest.
@pragma('vm:prefer-inline')
void truncate(int newLen) => length = newLen;