clearRecentEmojis method

Future<void> clearRecentEmojis({
  1. required GlobalKey<EmojiPickerState> key,
})

Clears the list of recent emojis

Implementation

Future<void> clearRecentEmojis(
    {required GlobalKey<EmojiPickerState> key}) async {
  return await EmojiPickerInternalUtils()
      .clearRecentEmojisInLocalStorage()
      .then((_) => key.currentState?.updateRecentEmoji([], refresh: true));
}