ObjectComparator class
Used to compare equality between objects and calculate their hash codes.
Constructors
- ObjectComparator.new()
-
Used to compare equality between objects and calculate their hash codes.
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
-
areEqual(
Object? a, Object? b) → bool -
Returns true if
a
andb
are equal. -
arePropsEqual(
List< Object?> a, List<Object?> b) → bool -
Returns true if the values within
a
andb
are equal. -
hashProps(
List< Object?> values) → int -
Returns a hash code that combines each object in
values
. -
hashValue(
Object? value) → int -
Returns a hash code for
value
. -
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