made changes to the recipe class

This commit is contained in:
2025-02-11 14:42:20 +01:00
parent 48f2664d2f
commit 8e352e729a

View File

@@ -13,8 +13,8 @@ class Recipe {
final Duration cookTime; final Duration cookTime;
final Duration totalTime; final Duration totalTime;
final List<String> keywords; final List<String> keywords;
final MealCategory mealCategory; final MealCategory? mealCategory;
final Cuisine cuisine; final Cuisine? cuisine;
Recipe({ Recipe({
this.id = -1, this.id = -1,
@@ -25,8 +25,8 @@ class Recipe {
this.prepTime = const Duration(), this.prepTime = const Duration(),
this.cookTime = const Duration(), this.cookTime = const Duration(),
this.totalTime = const Duration(), this.totalTime = const Duration(),
this.mealCategory = MealCategory.notSelected, this.mealCategory,
this.cuisine = Cuisine.notSelected, this.cuisine,
this.ingredients = const [], this.ingredients = const [],
this.keywords = const [], this.keywords = const [],
this.steps = const [], this.steps = const [],