addGiphyGifToRecentlyUsed method

Future addGiphyGifToRecentlyUsed({
  1. required GiphyGif giphyGif,
  2. KeyboardConfig keyboardConfig = const KeyboardConfig(),
})

Add a giphy gif to recently used list or increase its counter

Implementation

Future addGiphyGifToRecentlyUsed({
  // required GlobalKey<GiphyDisplayState> key,
  required GiphyGif giphyGif,
  KeyboardConfig keyboardConfig = const KeyboardConfig(),
}) async {
  return GiphyGifPickerInternalUtils()
      .addGiphyGifToRecentlyUsed(giphyGif: giphyGif, config: keyboardConfig);
  // .then((recentStickerList) =>
  //     key.currentState?.updateRecentGiphyGifs(recentStickerList));
}