getPosts method

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

Implementation

@override
List<TimelinePost> getPosts(String? category) => posts
    .where((element) => category == null || element.category == category)
    .toList();