collectVec method

Vec<T> collectVec()

Implementation

@pragma('vm:prefer-inline')
Vec<T> collectVec() {
  final list = <T>[];
  while (moveNext()) {
    list.add(current);
  }
  return list;
}