From 32ba6a04c38f557b3b776a9f29bc6da71fd52ec0 Mon Sep 17 00:00:00 2001 From: kshib Date: Sun, 10 Mar 2024 18:38:03 +0530 Subject: [PATCH] remove unnecessary ? --- lib/model/publisher.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/model/publisher.dart b/lib/model/publisher.dart index 1ad7222..0f35849 100644 --- a/lib/model/publisher.dart +++ b/lib/model/publisher.dart @@ -37,17 +37,17 @@ abstract class Publisher { String get mainCategory; - Future> articles({String category = "All", int page = 1}) { + Future> articles({String category = "All", int page = 1}) { return category.startsWith("#") ? searchedArticles(searchQuery: getAsSearchQuery(category), page: page) : categoryArticles(category: category, page: page); } - Future> categoryArticles({String category = "All", int page = 1}); + Future> categoryArticles({String category = "All", int page = 1}); - Future> searchedArticles({required String searchQuery, int page = 1}); + Future> searchedArticles({required String searchQuery, int page = 1}); - Future article(NewsArticle newsArticle); + Future article(NewsArticle newsArticle); Map toJson() { return {