Checks if all elements satisfy a given condition
bool all(bool Function(T element) test) { for (var element in this) { if (!test(element)) return false; } return true; }