fetchPosts method

  1. @override
Future<List<TimelinePost>> fetchPosts(
  1. String? category
)
override

Implementation

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