ListDiffer<E> class

Determines differences between two lists, returning ListChangeRecords.

While ListChangeRecord 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

ListDiffer([Equality<E> _equality = const DefaultEquality()])
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(List<E> e1, List<E> e2) List<ListChangeRecord<E>>
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