updateRecentSticker method

void updateRecentSticker(
  1. List<RecentSticker> recentSticker, {
  2. bool refresh = false,
})

Implementation

void updateRecentSticker(List<RecentSticker> recentSticker,
    {bool refresh = false}) {
  _recentSticker = recentSticker;
  _categorySticker[0] = _categorySticker[0]
      .copyWith(stickers: _recentSticker.map((e) => e.sticker).toList());
  if (mounted && refresh) {
    setState(() {});
  }
}