emojisCollection method

Future<GiphyCollection> emojisCollection({
  1. int offset = 0,
  2. int limit = _defaultLimit,
  3. GiphyRating rating = GiphyRating.g,
  4. String lang = GiphyLanguage.english,
})

Retrieves a single collection page of the emojis.

Set the offset from which the page should be retrieved (default to 0).

Set the page size with limit (defaults to 30).

Compare emojis for optional settings.

Implementation

Future<GiphyCollection> emojisCollection({
  int offset = 0,
  int limit = _defaultLimit,
  GiphyRating rating = GiphyRating.g,
  String lang = GiphyLanguage.english,
}) =>
    _fetchCollection(
      _baseUri.replace(
        path: '$_apiVersion/${GiphyType.emoji.name}',
        queryParameters: <String, String>{
          'offset': '$offset',
          'limit': '$limit',
          'rating': rating.name,
          'lang': lang,
        },
      ),
    );