Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 5c14f5a

Browse files
committed
Update recipe_book.dart
1 parent daa9b71 commit 5c14f5a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Chapter_05/lib/recipe_book.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class RecipeBookController {
2626
List<Recipe> recipes = [];
2727

2828
// Filter box
29-
Map<String, bool> categoryFilterMap = {};
29+
final categoryFilterMap = <String, bool>{};
3030
String nameFilterString = "";
3131

3232
RecipeBookController(this._http) {

Chapter_06/lib/recipe_book.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class RecipeBookController {
3434
List<Recipe> get allRecipes => _allRecipes;
3535

3636
// Filter box
37-
Map<String, bool> categoryFilterMap = {};
37+
final categoryFilterMap = <String, bool>{};
3838
String nameFilter = "";
3939

4040
RecipeBookController(this._http, this.queryService) {

0 commit comments

Comments
 (0)