getEmoji method
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;
}