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 {