AnimatedListDiffListComparator<T> class
A callback function-based version of AnimatedListDiffListBaseComparator.
- Inheritance
-
- Object
- AnimatedListDiffListBaseComparator<
T> - AnimatedListDiffListComparator
Constructors
- AnimatedListDiffListComparator({required bool sameItem(T elementA, T elementB), required bool sameContent(T elementA, T elementB)})
-
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sameContent(
T elementA, T elementB) → bool -
IT compares the
elementA
with theelementB
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.override -
sameItem(
T elementA, T elementB) → bool -
It compares the
elementA
with theelementB
and returnstrue
is they are the same item. Usually, the "id" of the item is compared here.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited