@@ -138,12 +138,12 @@ void main() {
138
138
139
139
api.get("/favorites", (ctx) async {
140
140
// Get a list of all the keys in the store
141
- var keys = await favouritesKV .keys();
141
+ var keys = await favoritesKV .keys();
142
142
143
- var favourites = await keys.asyncMap((k) async {
144
- final favourite = await favouritesKV .get(k);
143
+ var favorites = await keys.asyncMap((k) async {
144
+ final favorite = await favoritesKV .get(k);
145
145
146
- return favourite ;
146
+ return favorite ;
147
147
148
148
}).toList();
149
149
@@ -175,12 +175,12 @@ void main() {
175
175
176
176
api.get("/favorites", (ctx) async {
177
177
// Get a list of all the keys in the store
178
- var keys = await favouritesKV .keys();
178
+ var keys = await favoritesKV .keys();
179
179
180
- var favourites = await keys.asyncMap((k) async {
181
- final favourite = await favouritesKV .get(k);
180
+ var favorites = await keys.asyncMap((k) async {
181
+ final favorite = await favoritesKV .get(k);
182
182
183
- return favourite ;
183
+ return favorite ;
184
184
185
185
}).toList();
186
186
@@ -203,7 +203,7 @@ void main() {
203
203
// checks if the favorite exists in the list of keys
204
204
var exists = false;
205
205
await for (final key in keys) {
206
- if (key == favourite .name) {
206
+ if (key == favorite .name) {
207
207
exists = true;
208
208
}
209
209
}
@@ -282,12 +282,12 @@ void main() {
282
282
283
283
api.get("/favorites", (ctx) async {
284
284
// Get a list of all the keys in the store
285
- var keys = await favouritesKV .keys();
285
+ var keys = await favoritesKV .keys();
286
286
287
- var favourites = await keys.asyncMap((k) async {
288
- final favourite = await favouritesKV .get(k);
287
+ var favorites = await keys.asyncMap((k) async {
288
+ final favorite = await favoritesKV .get(k);
289
289
290
- return favourite ;
290
+ return favorite ;
291
291
292
292
}).toList();
293
293
@@ -310,7 +310,7 @@ void main() {
310
310
// checks if the favorite exists in the list of keys
311
311
var exists = false;
312
312
await for (final key in keys) {
313
- if (key == favourite .name) {
313
+ if (key == favorite .name) {
314
314
exists = true;
315
315
}
316
316
}
@@ -364,7 +364,7 @@ The first will show the current generated word along with a history of all previ
364
364
365
365
The second page will show the list of favorites if there are any, otherwise it will display that there are no word pairs currently liked.
366
366
367
- 
367
+ 
368
368
369
369
# ## Providers
370
370
0 commit comments