equalsEach method

bool equalsEach(
  1. List<T> other
)

Checks if this list equals another element by element

Implementation

bool equalsEach(List<T> other) {
  if (length != other.length) return false;
  for (int i = 0; i < length; i++) {
    if (this[i] != other[i]) return false;
  }
  return true;
}