Equality<T> class
abstract
Encapsulates equality between and the hash code of objects.
- Implementers
- Annotations
-
- @immutable
Constructors
- Equality()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
hash(
T a) → int -
Return the hash code of
a
.override -
isClose(
T a, T b, double epsilon) → bool -
Returns
true
, ifa
andb
are within range ofepsilon
. -
isEqual(
T a, T b) → bool -
Returns
true
, ifa
andb
are the same. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited