summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormavlonerkinboev <mavlonbek.ibragimov007@gmail.com>2021-11-02 18:57:19 +0500
committermavlonerkinboev <mavlonbek.ibragimov007@gmail.com>2021-11-02 18:57:19 +0500
commit322c702d4f1749e50ddbd36351baebe3a958ce83 (patch)
treeb67f72871572230273c401a3368ed684b216d4ab
parent72b811235c1b369d85657e41d08cdbce6ad965bf (diff)
Moved constructor after fields
-rwxr-xr-xlib/models/recipe.dart4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/models/recipe.dart b/lib/models/recipe.dart
index 2ca1bb2..5717509 100755
--- a/lib/models/recipe.dart
+++ b/lib/models/recipe.dart
@@ -12,8 +12,6 @@ class Recipe {
final String tutorial;
- Recipe({this.name,this.desc,this.description,this.image,this.ingredients,this.tutorial});
-
static List<Recipe> allRecipes()
{
var listOfRecipes = new List<Recipe>();
@@ -69,4 +67,6 @@ class Recipe {
return listOfRecipes;
}
+
+ Recipe({this.name, this.desc, this.description, this.image, this.ingredients, this.tutorial});
}