We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72ec1f9 commit 5b80fefCopy full SHA for 5b80fef
1 file changed
README.md
@@ -451,13 +451,13 @@ ParseLiveListWidget<ParseObject>(
451
query: query,
452
reverse: false,
453
childBuilder:
454
- (BuildContext context, bool failed, ParseObject loadedData) {
455
- if (failed) {
+ (BuildContext context, ParseLiveListElementSnapshot<ParseObject> snapshot) {
+ if (snapshot.failed) {
456
return const Text('something went wrong!');
457
- } else if (loadedData != null) {
+ } else if (snapshot.hasData) {
458
return ListTile(
459
title: Text(
460
- loadedData.get("text"),
+ snapshot.loadedData.get("text"),
461
),
462
);
463
} else {
0 commit comments