equalsIgnoringHashCodes function Null safety
- String value
Asserts that two Strings are equal after normalizing likely hash codes.
A #
followed by 5 hexadecimal digits is assumed to be a short hash code
and is normalized to #00000
.
See Also:
- describeIdentity, a method that generates short descriptions of objects
with ids that match the pattern
#[0-9a-f]{5}
. - shortHash, a method that generates a 5 character long hexadecimal String based on Object.hashCode.
- DiagnosticableTree.toStringDeep, a method that returns a String typically containing multiple hash codes.
Implementation
Matcher equalsIgnoringHashCodes(String value) {
return _EqualsIgnoringHashCodes(value);
}