Equality<E> class Null safety

A generic equality relation on objects.

Implementers

Constructors

Equality()
const
factory

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

equals(E e1, E e2) bool
Compare two elements for being equal.
hash(E e) int
Get a hashcode of an element.
override
isValidKey(Object? o) bool
Test whether an object is a valid argument to equals and hash.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited