From f2d0795704116ece38864d6b4db17a1a0499060a Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Fri, 6 Dec 2013 17:49:17 +0100 Subject: [PATCH] tooltip should not be public --- Chapter_05/lib/recipe_book.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Chapter_05/lib/recipe_book.dart b/Chapter_05/lib/recipe_book.dart index 5d3e697..bf3c2d8 100644 --- a/Chapter_05/lib/recipe_book.dart +++ b/Chapter_05/lib/recipe_book.dart @@ -40,15 +40,15 @@ kitchen and took the recipe book with him!"""; } // Tooltip - static final tooltip = new Expando(); + static final _tooltip = new Expando(); TooltipModel tooltipForRecipe(Recipe recipe) { - if (tooltip[recipe] == null) { - tooltip[recipe] = new TooltipModel(recipe.imgUrl, + if (_tooltip[recipe] == null) { + _tooltip[recipe] = new TooltipModel(recipe.imgUrl, "I don't have a picture of these recipes, " "so here's one of my cat instead!", 80); } - return tooltip[recipe]; // recipe.tooltip + return _tooltip[recipe]; // recipe.tooltip } void clearFilters() {