made updateDifficulty accept nullable difficulty
This commit is contained in:
@@ -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