changed totalTime to be a getter for preptime + cooktime

This commit is contained in:
marco committed 2025-02-11 15:24:49 +01:00
1 parent 35df4c0cc1
commit 7fd561180e
2 files changed
+15 -23

No files matched your search

@@ -66,13 +66,6 @@ class RecipeProvider extends ChangeNotifier {
}
}
void updateTotalTime(Duration totalTime, {bool silent = false}) {
_recipe = _recipe.copyWith(totalTime: totalTime);
if (!silent) {
notifyListeners();
}
}
void updateKeywords(List<String> keywords, {bool silent = false}) {
_recipe = _recipe.copyWith(keywords: keywords);
if (!silent) {