calculateCustomListDiff<T, L> function
you can use this function if you want to use custom list-types, such as BuiltList or KtList and want to avoid copying
Implementation
DiffResult<T> calculateCustomListDiff<T, L>(L oldList, L newList,
{bool detectMoves = true,
bool Function(T, T)? equalityChecker,
required T Function(L, int) getByIndex,
required int Function(L) getLength}) {
return calculateDiff(
CustomListDiffDelegate<T, L>(
oldList: oldList,
newList: newList,
equalityChecker: equalityChecker,
getLength: getLength,
getByIndex: getByIndex,
),
detectMoves: detectMoves);
}