collectSet method

  1. @override
Set<T> collectSet()

Implementation

@override
Set<T> collectSet() {
  final set = <T>{};
  while (moveNext()) {
    set.add(current);
  }
  return set;
}