@@ -176,19 +176,11 @@ abstract class CollectionChangeRecord<V> {
176
176
Iterable get iterable;
177
177
int get length;
178
178
179
- /** A list of [CollectionItem] s which are in the iteration order. */
180
- CollectionItem <V > get collectionHead;
181
- PreviousCollectionItem <V > get previousCollectionHead;
182
- /** A list of new [AddedItem] s. */
183
- AddedItem <V > get additionsHead;
184
- /** A list of [MovedItem] s. */
185
- MovedItem <V > get movesHead;
186
- /** A list of [RemovedItem] s. */
187
- RemovedItem <V > get removalsHead;
188
-
189
- void forEachAddition (void f (AddedItem <V > addition));
190
- void forEachMove (void f (MovedItem <V > move));
191
- void forEachRemoval (void f (RemovedItem <V > removal));
179
+ void forEachItem (void f (CollectionChangeItem <V > item));
180
+ void forEachPreviousItem (void f (CollectionChangeItem <V > previousItem));
181
+ void forEachAddition (void f (CollectionChangeItem <V > addition));
182
+ void forEachMove (void f (CollectionChangeItem <V > move));
183
+ void forEachRemoval (void f (CollectionChangeItem <V > removal));
192
184
}
193
185
194
186
/**
@@ -206,42 +198,6 @@ abstract class CollectionChangeItem<V> {
206
198
V get item;
207
199
}
208
200
209
- /**
210
- * Used to create a linked list of collection items. These items are always in
211
- * the iteration order of the collection.
212
- */
213
- abstract class CollectionItem <V > extends CollectionChangeItem <V > {
214
- CollectionItem <V > get nextCollectionItem;
215
- }
216
-
217
- /**
218
- * A linked list of new items added to the collection. These items are always in
219
- * the iteration order of the collection.
220
- */
221
- abstract class PreviousCollectionItem <V > extends CollectionChangeItem <V > {
222
- PreviousCollectionItem <V > get previousNextItem;
223
- }
224
-
225
- abstract class AddedItem <V > extends CollectionChangeItem <V > {
226
- AddedItem <V > get nextAddedItem;
227
- }
228
-
229
- /**
230
- * A linked list of items moved in the collection. These items are always in
231
- * the iteration order of the collection.
232
- */
233
- abstract class MovedItem <V > extends CollectionChangeItem <V > {
234
- MovedItem <V > get nextMovedItem;
235
- }
236
-
237
- /**
238
- * A linked list of items removed from the collection. These items are always
239
- * in the iteration order of the collection.
240
- */
241
- abstract class RemovedItem <V > extends CollectionChangeItem <V > {
242
- RemovedItem <V > get nextRemovedItem;
243
- }
244
-
245
201
typedef dynamic FieldGetter (object);
246
202
typedef void FieldSetter (object, value);
247
203
0 commit comments