@override @pragma("vm:prefer-inline") Set<T> collectSet() { final set = <T>{}; while (moveNext()) { set.add(current); } return set; }