Returns true if all elements match the given predicate.
predicate
bool all(bool Function(E element) predicate) { for (final element in this) { if (!predicate(element)) return false; } return true; }