isEqual static method

bool isEqual(
  1. dynamic value,
  2. Object? other
)

Implementation

static bool isEqual(dynamic value, Object? other) {
  if (value == null || other == null) {
    return value == other;
  } else if (value.runtimeType != other.runtimeType) {
    return false;
  }
  var type = TypeInfo.fromValue(value);
  return _mappers[type.type]?.equals(value, other) ?? value == other;
}