all method

bool all(
  1. bool where(
    1. T
    )
)

Returns true if every item matches where

Implementation

bool all(bool Function(T) where) {
  for (final element in this) {
    if (!where(element)) {
      return false;
    }
  }
  return true;
}