@@ -114,19 +114,11 @@ abstract class MapChangeRecord<K, V> {
114
114
/// The underlying map object
115
115
Map get map;
116
116
117
- /// A list of [CollectionKeyValue] s which are in the iteration order. */
118
- KeyValue <K , V > get mapHead;
119
- PreviousKeyValue <K , V > get previousMapHead;
120
- /// A list of changed items.
121
- ChangedKeyValue <K , V > get changesHead;
122
- /// A list of new added items.
123
- AddedKeyValue <K , V > get additionsHead;
124
- /// A list of removed items
125
- RemovedKeyValue <K , V > get removalsHead;
126
-
127
- void forEachChange (void f (ChangedKeyValue <K , V > change));
128
- void forEachAddition (void f (AddedKeyValue <K , V > addition));
129
- void forEachRemoval (void f (RemovedKeyValue <K , V > removal));
117
+ void forEachItem (void f (MapKeyValue <K , V > item));
118
+ void forEachPreviousItem (void f (MapKeyValue <K , V > previousItem));
119
+ void forEachChange (void f (MapKeyValue <K , V > change));
120
+ void forEachAddition (void f (MapKeyValue <K , V > addition));
121
+ void forEachRemoval (void f (MapKeyValue <K , V > removal));
130
122
}
131
123
132
124
/**
@@ -144,26 +136,6 @@ abstract class MapKeyValue<K, V> {
144
136
V get currentValue;
145
137
}
146
138
147
- abstract class KeyValue <K , V > extends MapKeyValue <K , V > {
148
- KeyValue <K , V > get nextKeyValue;
149
- }
150
-
151
- abstract class PreviousKeyValue <K , V > extends MapKeyValue <K , V > {
152
- PreviousKeyValue <K , V > get previousNextKeyValue;
153
- }
154
-
155
- abstract class AddedKeyValue <K , V > extends MapKeyValue <K , V > {
156
- AddedKeyValue <K , V > get nextAddedKeyValue;
157
- }
158
-
159
- abstract class RemovedKeyValue <K , V > extends MapKeyValue <K , V > {
160
- RemovedKeyValue <K , V > get nextRemovedKeyValue;
161
- }
162
-
163
- abstract class ChangedKeyValue <K , V > extends MapKeyValue <K , V > {
164
- ChangedKeyValue <K , V > get nextChangedKeyValue;
165
- }
166
-
167
139
/**
168
140
* If the [ChangeDetector] is watching an [Iterable] then the [currentValue] of
169
141
* [Record] will contain an instance of [CollectionChangeRecord] . The
0 commit comments