search method

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

Implementation

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