Equality of objects that compares only the natural equality of the objects.
Note that equals and hash take
Objects rather than
Es. This allows
E to be inferred as
Null in const contexts where
E wouldn't be a
compile-time constant, while still allowing the class to be used at runtime.
- Implemented types
Object? e1, Object? e2) → bool
Compare two elements for being equal.
Object? e) → int
Creates a combined hash code for a number of objects.
Object? o) → bool
Test whether an object is a valid argument to equals and hash.
Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
) → String
A string representation of this object.