consider implementing IndexableItemDiffDelegate instead in order to be able to call DiffResult::getUpdatesWithData
- Implementers
Constructors
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
-
areContentsTheSame(
int oldItemPosition, int newItemPosition) → bool - Called by the DiffUtil when it wants to check whether two items have the same data. DiffUtil uses this information to detect if the contents of an item has changed.
-
areItemsTheSame(
int oldItemPosition, int newItemPosition) → bool - Called by the DiffUtil to decide whether two object represent the same Item.
-
getChangePayload(
int oldItemPosition, int newItemPosition) → Object? - When areItemsTheSame(int, int) returns true for two items and areContentsTheSame(int, int) returns false for them, DiffUtil calls this method to get a payload about the change.
-
getNewListSize(
) → int - Returns the size of the new list.
-
getOldListSize(
) → int - Returns the size of the old list.
-
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