updateRecentSticker method
Implementation
void updateRecentSticker(List<RecentSticker> recentSticker,
{bool refresh = false}) {
_recentSticker = recentSticker;
final recentsIndex = _recentsTabIndex;
if (recentsIndex == null) {
return;
}
final entry = _tabs[recentsIndex];
final existing = entry.categorySticker;
if (existing == null) {
return;
}
entry.categorySticker = existing.copyWith(
stickers: _recentSticker.map((e) => e.sticker).toList(),
);
if (mounted && refresh) {
setState(() {});
}
}