AnimatedListDiffBaseComparator<T> class
abstract
A derivated version of this class has to be implemented to tell AnimatedListDiffDispatcher how to compare items of two lists in order to dispatch the differences to the AnimatedListController.
- Implementers
Constructors
- AnimatedListDiffBaseComparator()
-
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
-
lengthOf(
T list) → int -
It returns the length of the
list
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sameContent(
T listA, int indexA, T listB, int indexB) → bool -
IT compares the
indexA
oflistA
with theindexB
oflistB
and returnstrue
is they have the same content. This method is called after sameItem returnedtrue
, so this method tells if the same item has changed its content; if so a changing notification will be sent to the AnimatedListController. -
sameItem(
T listA, int indexA, T listB, int indexB) → bool -
It compares the
indexA
of thelistA
with theindexB
of thelistB
and returnstrue
is they are the same item. Usually, the "id" of the item is compared here. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited