bool allEqualCmp(bool Function(T a, T b) equals) { final it = iterator; if (!it.moveNext()) { throw this; } return it.allEqualTo(it.current, equals); }