diffutil library

Classes

BatchableDiff
Change
DataChange<T>
DataDiffUpdate<T>
DataInsert<T>
DataMove<T>
DataRemove<T>
DiffDelegate
consider implementing IndexableItemDiffDelegate instead in order to be able to call DiffResult::getUpdatesWithData
DiffResult<T>
This class holds the information about the result of a calculateDiff call.
DiffUpdate
IndexableItemDiffDelegate<T>
you need to implement this interface if you use a custom DiffDelegate and want to call getUpdatesWithData
Insert
ListDiffDelegate<T>
Move
Remove

Functions

calculateCustomListDiff<T, L>(L oldList, L newList, {bool detectMoves = true, bool equalityChecker(T, T)?, required T getByIndex(L, int), required int getLength(L)}) DiffResult<T>
you can use this function if you want to use custom list-types, such as BuiltList or KtList and want to avoid copying
calculateDiff<T>(DiffDelegate cb, {bool detectMoves = false}) DiffResult<T>
Calculates the list of update operations that can covert one list into the other one.
calculateListDiff<T>(List<T> oldList, List<T> newList, {bool detectMoves = true, bool equalityChecker(T, T)?}) DiffResult<T>
calculate the difference between the two given lists.