File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/firebase_snippets_app/lib/snippets Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -109,16 +109,16 @@ class FirestoreSnippets extends DocSnippet {
109
109
// Get a bundle from a server
110
110
final url = Uri .https ('example.com' , '/create-bundle' );
111
111
final response = await http.get (url);
112
- String string = response.body;
113
- final buffer = Uint8List .fromList (string .codeUnits);
112
+ String body = response.body;
113
+ final buffer = Uint8List .fromList (body .codeUnits);
114
114
115
115
// Load a bundle from a buffer
116
116
LoadBundleTask task = FirebaseFirestore .instance.loadBundle (buffer);
117
117
await task.stream.toList ();
118
118
119
119
// Use the cached named query
120
120
final results = await FirebaseFirestore .instance.namedQueryGet (
121
- "example -query" ,
121
+ "latest-stories -query" ,
122
122
options: const GetOptions (
123
123
source: Source .cache,
124
124
),
You can’t perform that action at this time.
0 commit comments