ShallowCollectionEquality class
- Implemented types
Constructors
- ShallowCollectionEquality([Equality base = const DefaultEquality<Never>()])
-
const
- ShallowCollectionEquality.unordered([Equality base = const DefaultEquality<Never>()])
-
Creates a shallow equality on collections where the order of lists and
iterables are not considered important.
Only lists and iterables are treated as unordered iterables.
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
-
equals(
Object? e1, Object? e2) → bool -
Compare two elements for being equal.
override
-
hash(
Object? o) → int -
Creates a combined hash code for a number of objects.
override
-
isValidKey(
Object? o) → bool -
Test whether an object is a valid argument to equals and hash.
override
-
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