File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
packages/dart/lib/src/utils Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -377,6 +377,8 @@ class ParseLiveList<T extends ParseObject> {
377
377
oldObject: _list[i].object, paths: _includePaths);
378
378
if (after (_list[i].object, object) == null ) {
379
379
_list[i].object = object.clone (object.toJson (full: true ));
380
+ _eventStreamController.sink.add (ParseLiveListUpdateEvent <T >(
381
+ i, object.clone (object.toJson (full: true ))));
380
382
} else {
381
383
_list.removeAt (i).dispose ();
382
384
_eventStreamController.sink.add (ParseLiveListDeleteEvent <T >(
@@ -742,6 +744,11 @@ class ParseLiveListAddEvent<T extends ParseObject>
742
744
ParseLiveListAddEvent (int index, T object) : super (index, object);
743
745
}
744
746
747
+ class ParseLiveListUpdateEvent <T extends ParseObject >
748
+ extends ParseLiveListEvent <T > {
749
+ ParseLiveListUpdateEvent (int index, T object) : super (index, object);
750
+ }
751
+
745
752
class ParseLiveListDeleteEvent <T extends ParseObject >
746
753
extends ParseLiveListEvent <T > {
747
754
ParseLiveListDeleteEvent (int index, T object) : super (index, object);
You can’t perform that action at this time.
0 commit comments