bool all(bool Function(T) condition) { final it = iterator; while (it.moveNext()) { if (!condition(it.current)) { return false; } } return true; }