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

Commit f2d0795

Browse files
committed
tooltip should not be public
1 parent e23019b commit f2d0795

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Chapter_05/lib/recipe_book.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ kitchen and took the recipe book with him!""";
4040
}
4141

4242
// Tooltip
43-
static final tooltip = new Expando<TooltipModel>();
43+
static final _tooltip = new Expando<TooltipModel>();
4444
TooltipModel tooltipForRecipe(Recipe recipe) {
45-
if (tooltip[recipe] == null) {
46-
tooltip[recipe] = new TooltipModel(recipe.imgUrl,
45+
if (_tooltip[recipe] == null) {
46+
_tooltip[recipe] = new TooltipModel(recipe.imgUrl,
4747
"I don't have a picture of these recipes, "
4848
"so here's one of my cat instead!",
4949
80);
5050
}
51-
return tooltip[recipe]; // recipe.tooltip
51+
return _tooltip[recipe]; // recipe.tooltip
5252
}
5353

5454
void clearFilters() {

0 commit comments

Comments
 (0)