operator == method

  1. @override
bool operator ==(
  1. Object other
)
override

Equality is hash-based by design — consistent with Entity / TypeEntity elsewhere in the package. Used only to skip no-op setDependency overwrites in DIRegistry (and so to avoid spurious onChange callbacks); the registry slot key is typeEntity, not the dep itself, so a hash collision here cannot misroute a lookup.

Implementation

@override
bool operator ==(Object other) {
  if (identical(this, other)) return true;
  return other is Dependency && hashCode == other.hashCode;
}