trending method

Future<GiphyCollection> trending({
  1. int offset = 0,
  2. int limit = 30,
  3. String rating = GiphyRating.g,
  4. String lang = GiphyLanguage.english,
  5. String type = GiphyType.gifs,
})

Implementation

Future<GiphyCollection> trending({
  int offset = 0,
  int limit = 30,
  String rating = GiphyRating.g,
  String lang = GiphyLanguage.english,
  String type = GiphyType.gifs,
}) async {
  return _fetchCollection(
    baseUri.replace(
      path: '$_apiVersion/$type/trending',
      queryParameters: <String, String>{
        'offset': '$offset',
        'limit': '$limit',
        'rating': rating,
        'lang': lang
      },
    ),
  );
}