Make kPestoRecipes a constant (#7886)

Someone on stack overflow was mutating the list of recipes and getting
confused about why the UI didn't redraw. Making kPestoRecipes a constant
might help avoid that confusion.
This commit is contained in:
Adam Barth
2017-02-04 09:33:56 -08:00
committed by GitHub
parent b339c71523
commit 652e9c7aa3

View File

@@ -551,7 +551,7 @@ class RecipeStep {
final String description;
}
final List<Recipe> kPestoRecipes = <Recipe>[
const List<Recipe> kPestoRecipes = const <Recipe>[
const Recipe(
name: 'Pesto Bruschetta',
author: 'Peter Carlsson',