MapDiffer<K, V> class

Determines differences between two maps, returning MapChangeRecords.

While MapChangeRecord has more information and can be replayed they carry a more significant cost to calculate and create and should only be used when the details in the record will actually be used.

See also EqualityDiffer for a simpler comparison.

Implemented types

Constructors

MapDiffer()
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

diff(Map<K, V> oldValue, Map<K, V> newValue) List<MapChangeRecord<K, V>>
Returns a list of change records between oldValue and newValue.
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