DiffableEquality class Null safety

A specialized DiffEquality implementation that checks whether either object is Diffable and uses the delegate check. If neither instance is Diffable, a fallback Equality is used

Implemented types
Available Extensions

Constructors

DiffableEquality({Equality fallbackEquals = const Equality(), Equality fallbackIdentity = const Equality()})
const

Properties

fallbackEquals Equality
final
fallbackIdentity Equality
final
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

areEqual(dynamic a, dynamic b) bool
Determines whether two records have the same state. See areIdentical for a check that two records represent the same resource.
override
areIdentical(dynamic a, dynamic b) bool
Whether the two items being compared have the same identity, for example two records with the same primary key. This check is used to determine if an item should be removed or added to a list, rather than updated. [...]
override
hash(dynamic e) int
Creates a combined hash code for a number of objects. [...]
override
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

Constants

equality → const EqualityFromDiffable
EqualityFromDiffable.equals()
identityEquality → const EqualityFromDiffable
EqualityFromDiffable.identity()