getGif method

dynamic getGif(
  1. String queryText,
  2. BuildContext context, {
  3. bool showGIFs = true,
  4. bool showStickers = true,
  5. bool showEmojis = true,
})

Implementation

getGif(
  String queryText,
  BuildContext context, {
  bool showGIFs = true,
  bool showStickers = true,
  bool showEmojis = true,
}) async {
  GiphyGif? gif = await GiphyGet.getGif(
    queryText: queryText,
    context: context,
    apiKey: giphy_api_key, //YOUR API KEY HERE
    lang: GiphyLanguage.spanish,
    showGIFs: showGIFs,
    showStickers: showStickers,
    showEmojis: showEmojis,
    debounceTimeInMilliseconds: 350,
  );
  if (gif != null) streamController.add(gif);
}