Skip to content

Commit b76bef8

Browse files
authored
Update README.md (#353)
1 parent d6948d7 commit b76bef8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -451,13 +451,13 @@ ParseLiveListWidget<ParseObject>(
451451
query: query,
452452
reverse: false,
453453
childBuilder:
454-
(BuildContext context, bool failed, ParseObject loadedData) {
455-
if (failed) {
454+
(BuildContext context, ParseLiveListElementSnapshot<ParseObject> snapshot) {
455+
if (snapshot.failed) {
456456
return const Text('something went wrong!');
457-
} else if (loadedData != null) {
457+
} else if (snapshot.hasData) {
458458
return ListTile(
459459
title: Text(
460-
loadedData.get("text"),
460+
snapshot.loadedData.get("text"),
461461
),
462462
);
463463
} else {

0 commit comments

Comments
 (0)