changed totalTime to be a getter for preptime + cooktime

This commit is contained in:
2025-02-11 15:24:49 +01:00
parent 35df4c0cc1
commit 7fd561180e
2 changed files with 15 additions and 23 deletions

View File

@@ -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) {