allEqualTo method

bool allEqualTo(
  1. T first, [
  2. bool eq(
    1. T a,
    2. T b
    ) = _eq
])

Implementation

bool allEqualTo(
  T first, [
  bool Function(T a, T b) eq = _eq,
]) {
  while (moveNext()) {
    if (!eq(current, first)) {
      return false;
    }
  }
  return true;
}