getPosts method Null safety
- {String? subreddit,
- PostSort sortBy = PostSort.hot,
- PostSortSince since = PostSortSince.none,
- String? after,
- int limit = 100}
Implementation
Future<List<Post>> getPosts({
String? subreddit,
PostSort sortBy = PostSort.hot,
PostSortSince since = PostSortSince.none,
String? after,
int limit = 100
}) {
return reddit.getPosts(
subreddit: subreddit,
sortBy: sortBy,
since: since,
after: after,
limit: limit
);
}