changed totalTime to be a getter for preptime + cooktime
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user