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, if a and b are within range of epsilon.
isEqual(T a, T b) bool
Returns true, if a and b 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