collectList method

  1. @override
List<T> collectList({
  1. bool growable = true,
})

Implementation

@override
List<T> collectList({bool growable = true}) {
  final list = <T>[];
  while (moveNext()) {
    list.add(current);
  }
  return list;
}