getRecentBlogs method

Future<List<BlogPost>> getRecentBlogs({
  1. int limit = 5,
})

Implementation

Future<List<BlogPost>> getRecentBlogs({int limit = 5}) async {
  final response = await getAllBlogs(perPage: limit);
  return response.data;
}