made difficulty nullable

This commit is contained in:
2025-02-11 16:26:50 +01:00
parent 509f1fd695
commit 681532f557

View File

@@ -6,7 +6,7 @@ class Recipe {
this.id = -1, this.id = -1,
this.title = '', this.title = '',
this.description = '', this.description = '',
this.difficulty = Difficulty.notSelected, this.difficulty,
required this.datePublished, required this.datePublished,
this.prepTime = const Duration(), this.prepTime = const Duration(),
this.cookTime = const Duration(), this.cookTime = const Duration(),
@@ -22,7 +22,7 @@ class Recipe {
final Cuisine? cuisine; final Cuisine? cuisine;
final DateTime datePublished; final DateTime datePublished;
final String description; final String description;
final Difficulty difficulty; final Difficulty? difficulty;
final int id; final int id;
final List<IngredientListEntry> ingredients; final List<IngredientListEntry> ingredients;
final List<String> keywords; final List<String> keywords;