refreshPosts method

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

Implementation

@override
Future<List<TimelinePost>> refreshPosts(String? category) async {
  var newPosts = <TimelinePost>[];

  posts = [...posts, ...newPosts];
  notifyListeners();
  return posts;
}