allEqualCmp method

bool allEqualCmp(
  1. bool equals(
    1. T a,
    2. T b
    )
)

Implementation

bool allEqualCmp(bool Function(T a, T b) equals) {
  final it = iterator;
  if (!it.moveNext()) {
    throw this;
  }
  return it.allEqualTo(it.current, equals);
}