addEmojiToRecentlyUsed method
Future<void>
addEmojiToRecentlyUsed({
- required GlobalKey<
EmojiPickerState> key, - required Emoji emoji,
- Config config = const Config(),
Add an emoji to recently used list or increase its counter
Implementation
Future<void> addEmojiToRecentlyUsed({
required GlobalKey<EmojiPickerState> key,
required Emoji emoji,
Config config = const Config(),
}) async {
return EmojiPickerInternalUtils()
.addEmojiToRecentlyUsed(emoji: emoji, config: config)
.then((recentEmojiList) =>
key.currentState?.updateRecentEmoji(recentEmojiList));
}