diff options
author | mavlonerkinboev <mavlonbek.ibragimov007@gmail.com> | 2021-11-02 18:57:19 +0500 |
---|---|---|
committer | mavlonerkinboev <mavlonbek.ibragimov007@gmail.com> | 2021-11-02 18:57:19 +0500 |
commit | 322c702d4f1749e50ddbd36351baebe3a958ce83 (patch) | |
tree | b67f72871572230273c401a3368ed684b216d4ab | |
parent | 72b811235c1b369d85657e41d08cdbce6ad965bf (diff) |
Moved constructor after fields
-rwxr-xr-x | lib/models/recipe.dart | 4 |
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}); } |