Skip to content

Commit

Permalink
remove unnecessary ?
Browse files Browse the repository at this point in the history
  • Loading branch information
ksh-b committed Mar 10, 2024
1 parent aaa4732 commit 32ba6a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/model/publisher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ abstract class Publisher {

String get mainCategory;

Future<Set<NewsArticle?>> articles({String category = "All", int page = 1}) {
Future<Set<NewsArticle>> articles({String category = "All", int page = 1}) {
return category.startsWith("#")
? searchedArticles(searchQuery: getAsSearchQuery(category), page: page)
: categoryArticles(category: category, page: page);
}

Future<Set<NewsArticle?>> categoryArticles({String category = "All", int page = 1});
Future<Set<NewsArticle>> categoryArticles({String category = "All", int page = 1});

Future<Set<NewsArticle?>> searchedArticles({required String searchQuery, int page = 1});
Future<Set<NewsArticle>> searchedArticles({required String searchQuery, int page = 1});

Future<NewsArticle?> article(NewsArticle newsArticle);
Future<NewsArticle> article(NewsArticle newsArticle);

Map<String, dynamic> toJson() {
return {
Expand Down

0 comments on commit 32ba6a0

Please sign in to comment.