updateRecentGiphyGifs method

void updateRecentGiphyGifs(
  1. List<RecentGiphyGif> recentGiphyGif, {
  2. bool refresh = false,
})

Implementation

void updateRecentGiphyGifs(List<RecentGiphyGif> recentGiphyGif,
    {bool refresh = false}) {
  if (mounted && refresh) {
    _collection =
        GiphyCollection(data: recentGiphyGif.map((e) => e.gif).toList());
    setState(() {});
  }
}