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 {
109109 // Get a bundle from a server
110110 final url = Uri .https ('example.com' , '/create-bundle' );
111111 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);
114114
115115 // Load a bundle from a buffer
116116 LoadBundleTask task = FirebaseFirestore .instance.loadBundle (buffer);
117117 await task.stream.toList ();
118118
119119 // Use the cached named query
120120 final results = await FirebaseFirestore .instance.namedQueryGet (
121- "example -query" ,
121+ "latest-stories -query" ,
122122 options: const GetOptions (
123123 source: Source .cache,
124124 ),
You can’t perform that action at this time.
0 commit comments