From 322c702d4f1749e50ddbd36351baebe3a958ce83 Mon Sep 17 00:00:00 2001 From: mavlonerkinboev Date: Tue, 2 Nov 2021 18:57:19 +0500 Subject: Moved constructor after fields --- lib/models/recipe.dart | 4 ++-- 1 file 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 allRecipes() { var listOfRecipes = new List(); @@ -69,4 +67,6 @@ class Recipe { return listOfRecipes; } + + Recipe({this.name, this.desc, this.description, this.image, this.ingredients, this.tutorial}); } -- cgit v1.2.3