deepEqual static method

bool deepEqual(
  1. Object? a,
  2. Object? b
)

Implementation

static bool deepEqual(Object? a, Object? b) {
  if (a == null || b == null) return false;
  if (a == b) return true;
  if (identical(a, b)) return true;
  if (a is List && b is List) {
    return CompareUtils.iterableIsEqual(a, b);
  }
  if (a is Map && b is Map) {
    return CompareUtils.mapIsEqual(a, b);
  }
  return false;
}