keysEqual static method

bool keysEqual(
  1. List<Object?>? a,
  2. List<Object?>? b
)

Whether a and b are both null, or as long and their items equal (or identical, as a NaN is to itself) one by one.

Implementation

static bool keysEqual(List<Object?>? a, List<Object?>? b) {
  if (identical(a, b)) {
    return true;
  }
  if (a == null || b == null || a.length != b.length) {
    return false;
  }
  for (var i = 0; i < a.length; i++) {
    if (!identical(a[i], b[i]) && a[i] != b[i]) {
      return false;
    }
  }
  return true;
}