Skip to content

Commit 933bf6b

Browse files
committed
Minor changes
1 parent 860ab26 commit 933bf6b

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/src/builder/motion_list_base.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,22 +197,17 @@ abstract class MotionListBaseState<
197197
}
198198

199199
void calculateDiff(List oldList, List newList) {
200-
// if(widget.onrReorder != null && oldList.length == newList.length) {
201-
// return;
202-
// }
203200
// Detect removed and updated items
204201
for (int i = oldList.length - 1; i >= 0; i--) {
205202
if (newList.indexWhere((element) => isSameItem(oldList[i], element)) ==
206203
-1) {
207-
print("item is deleted: $i");
208204
listKey.currentState!.removeItem(i, removeItemDuration: removeDuration);
209205
}
210206
}
211207
// Detect added items
212208
for (int i = 0; i < newList.length; i++) {
213209
if (oldList.indexWhere((element) => isSameItem(newList[i], element)) ==
214210
-1) {
215-
print("item is added: $i");
216211
listKey.currentState!.insertItem(i, insertDuration: insertDuration);
217212
}
218213
}

0 commit comments

Comments
 (0)