equalsValuesEntityMap static method

bool equalsValuesEntityMap(
  1. Object value1,
  2. Object value2, {
  3. EntityHandler? entityHandler,
})

Implementation

static bool equalsValuesEntityMap(Object value1, Object value2,
    {EntityHandler? entityHandler}) {
  if (value1 is Map && value2 is Map) {
    return isEqualsDeep(value1, value2);
  }

  var id1 = getEntityIDFrom(value1, entityHandler: entityHandler);
  var id2 = getEntityIDFrom(value2, entityHandler: entityHandler);

  return id1 == id2;
}