you need to implement this interface if you use a custom DiffDelegate and want to call getUpdatesWithData
- Inheritance
-
- Object
- DiffDelegate
- IndexableItemDiffDelegate
- 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.
inherited
-
areItemsTheSame(
int oldItemPosition, int newItemPosition) → bool -
Called by the DiffUtil to decide whether two object represent the same Item.
inherited
-
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.
inherited
-
getNewItemAtIndex(
int index) → T -
getNewListSize(
) → int -
Returns the size of the new list.
inherited
-
getOldItemAtIndex(
int index) → T -
getOldListSize(
) → int -
Returns the size of the old list.
inherited
-
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