all method

bool all(
  1. bool condition(
    1. T
    )
)

Implementation

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