requestImagesWithKeyword method

Future<PixabayResponse?> requestImagesWithKeyword({
  1. String? keyword,
  2. int resultsPerPage = 30,
  3. int? page,
  4. String? category,
})

request images for a given keyword or search term

pageing is prepared but not used yet

Implementation

Future<PixabayResponse?> requestImagesWithKeyword(
    {String? keyword,
    int resultsPerPage = 30,
    int? page,
    String? category}) async {
  return requestMediaWithKeyword(
      media: MediaType.photo,
      keyword: keyword,
      resultsPerPage: resultsPerPage,
      page: page,
      category: category);
}