getGif method
dynamic
getGif(
- String queryText,
- BuildContext context, {
- bool showGIFs = true,
- bool showStickers = true,
- 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);
}