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

tooltip should not be public #19

Merged
merged 1 commit into from
Dec 10, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Chapter_05/lib/recipe_book.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ kitchen and took the recipe book with him!""";
}

// Tooltip
static final tooltip = new Expando<TooltipModel>();
static final _tooltip = new Expando<TooltipModel>();
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() {
Expand Down