collectList method

  1. @override
List<T> collectList()

Implementation

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