made updateDifficulty accept nullable difficulty

This commit is contained in:
2025-02-11 16:28:06 +01:00
parent 094054ec00
commit 28c1b8d56b

View File

@@ -30,7 +30,7 @@ class RecipeProvider extends ChangeNotifier {
}
}
void updateDifficulty(Difficulty difficulty, {bool silent = false}) {
void updateDifficulty(Difficulty? difficulty, {bool silent = false}) {
_recipe = _recipe.copyWith(difficulty: difficulty);
if (!silent) {
notifyListeners();