equalsValuesPrimitive static method

bool? equalsValuesPrimitive(
  1. Object value1,
  2. Object value2
)

Implementation

static bool? equalsValuesPrimitive(Object value1, Object value2) {
  var primitive1 = TypeParser.isPrimitiveValue(value1);
  var primitive2 = TypeParser.isPrimitiveValue(value2);

  if (primitive1 && primitive2) {
    return value1 == value2;
  }

  return null;
}