made changes to the recipe class
This commit is contained in:
@@ -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 [],
|
||||||
|
|||||||
Reference in New Issue
Block a user