getEmoji method

Emoji getEmoji(
  1. String emoji
)

Get emoji based on emoji code.

For example:

var parser = EmojiParser(); var emojiHeart = parser.getEmoji('❤'); print(emojiHeart); '{name: heart, full: :heart:, emoji: ❤️}'

Returns Emoji.None if not found.

Implementation

Emoji getEmoji(String emoji) {
  return _emojisByCode[EmojiUtil.stripNSM(emoji)] ?? Emoji.none;
}