getContent method

Future<Map<String, dynamic>> getContent(
  1. List<String> slug
)

Retrieves content by slug.

slug - The slug of the content to retrieve.

Implementation

Future<Map<String, dynamic>> getContent(List<String> slug) async {
  return _retryPolicy.execute(() async {
    final path = slug.join('/');
    return await _apiClient.get('/v1/content/$path');
  });
}