File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -317,6 +317,15 @@ class ParseLiveList<T extends ParseObject> {
317
317
return 'NotFound' ;
318
318
}
319
319
320
+ String getIdentifier (int index) {
321
+ if (index < _list.length) {
322
+ return _list[index].object.get <String >(keyVarObjectId) +
323
+ _list[index].object.get <DateTime >(keyVarUpdatedAt)? .toString () ??
324
+ '' ;
325
+ }
326
+ return 'NotFound' ;
327
+ }
328
+
320
329
T getLoadedAt (int index) {
321
330
if (index < _list.length && _list[index].loaded) {
322
331
return _list[index].object;
@@ -521,7 +530,8 @@ class _ParseLiveListWidgetState<T extends ParseObject>
521
530
itemBuilder:
522
531
(BuildContext context, int index, Animation <double > animation) {
523
532
return ParseLiveListElementWidget <T >(
524
- key: ValueKey <String >(_liveList? .idOf (index) ?? '_NotFound' ),
533
+ key: ValueKey <String >(
534
+ _liveList? .getIdentifier (index) ?? '_NotFound' ),
525
535
stream: () => _liveList? .getAt (index),
526
536
loadedData: () => _liveList? .getLoadedAt (index),
527
537
sizeFactor: animation,
You can’t perform that action at this time.
0 commit comments