collectArr method

Arr<T> collectArr()

Implementation

@pragma("vm:prefer-inline")
Arr<T> collectArr() {
  final list = <T>[];
  while (moveNext()) {
    list.add(current);
  }
  return Arr.fromList(list);
}