addRecentEmoji method

Future<void> addRecentEmoji(
  1. String emoji
)

+1 the stated emoji in the account data

Implementation

Future<void> addRecentEmoji(String emoji) async {
  final data = recentEmojis;
  if (data.containsKey(emoji)) {
    data[emoji] = data[emoji]! + 1;
  } else {
    data[emoji] = 1;
  }
  return setRecentEmojiData(data);
}