From debaacd9a0484223f4b1f9b399ff43fe4e258a45 Mon Sep 17 00:00:00 2001 From: Vivek Verma Date: Fri, 11 Mar 2022 13:00:26 +0530 Subject: [PATCH] solved null exception --- lib/models/projects.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/models/projects.dart b/lib/models/projects.dart index 0868e0f5..62d475dc 100644 --- a/lib/models/projects.dart +++ b/lib/models/projects.dart @@ -84,7 +84,7 @@ class ProjectAttributes { description: json['description'], view: json['view'], tags: List.from(json['tags'].map((x) => Tag.fromJson(x))), - isStarred: json['is_starred'], + isStarred: json['is_starred'] ?? false, authorName: json['author_name'], starsCount: json['stars_count'], );