fetchPosts method
- String? category
override
Implementation
@override
Future<List<TimelinePost>> fetchPosts(String? category) async {
if (posts.isEmpty) {
posts = getMockedPosts();
}
notifyListeners();
return posts;
}
@override
Future<List<TimelinePost>> fetchPosts(String? category) async {
if (posts.isEmpty) {
posts = getMockedPosts();
}
notifyListeners();
return posts;
}