AnimatedListDiffComparator<T> class

A derivated version of this class has to be implemented to tell AnimatedListDiffDispatcher how compare items of two lists in order to dispatch to the AnimatedListController the differences.

Constructors

AnimatedListDiffComparator()

Properties

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

lengthOf(T list) int
Returns the length of the list.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
sameContent(T listA, int indexA, T listB, int indexB) bool
Compares the indexA of listA with the indexB of listB and returns true is they have the same content. This method is called after sameItem returned true, so this method tells if the same item has changed in its content, then a changing notification will be sent to the controller.
sameItem(T listA, int indexA, T listB, int indexB) bool
Compares the indexA of the listA with the indexB of the listB and returns true is they are the same item. Usually, the "id" of the item is compared here.
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited