diff --git a/README.md b/README.md index 9a71f8362..7118c17cd 100644 --- a/README.md +++ b/README.md @@ -451,13 +451,13 @@ ParseLiveListWidget( query: query, reverse: false, childBuilder: - (BuildContext context, bool failed, ParseObject loadedData) { - if (failed) { + (BuildContext context, ParseLiveListElementSnapshot snapshot) { + if (snapshot.failed) { return const Text('something went wrong!'); - } else if (loadedData != null) { + } else if (snapshot.hasData) { return ListTile( title: Text( - loadedData.get("text"), + snapshot.loadedData.get("text"), ), ); } else {