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,
  6. String type = GiphyType.gifs,
})

Implementation

Future<GiphyCollection> search(
  String query, {
  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/search',
      queryParameters: <String, String>{
        'q': query,
        'offset': '$offset',
        'limit': '$limit',
        'rating': rating,
        'lang': lang,
      },
    ),
  );
}