diff --git a/lib/change_detection/dirty_checking_change_detector.dart b/lib/change_detection/dirty_checking_change_detector.dart index 48967fda3..1d199fece 100644 --- a/lib/change_detection/dirty_checking_change_detector.dart +++ b/lib/change_detection/dirty_checking_change_detector.dart @@ -984,6 +984,19 @@ class _CollectionChangeRecord implements CollectionChangeRecord { record = nextRecord; } _removedItems.clear(); + + if (_additionsTail != null) { + _additionsTail._nextAddedRec = null; + } + if (_movesTail != null) { + _movesTail._nextMovedRec = null; + } + if (_collectionTail != null) { + _collectionTail._nextRec = null; + } + if (_removalsTail != null) { + _removalsTail._nextRemovedRec = null; + } } ItemRecord _collection_reinsertAfter(ItemRecord record, ItemRecord insertPrev,