made updateDifficulty accept nullable difficulty
This commit is contained in:
1 parent
094054ec00
commit
28c1b8d56b
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user