fromName static method

AnimatedEmojiData fromName(
  1. String name
)

Return the animated emoji of name.

When no emoji is found a EmojiNotFoundException is thrown.

// Will return a rose emoji 🌹
AnimatedEmojis.fromName('rose')

Implementation

static AnimatedEmojiData fromName(String name) {
  return AnimatedEmojiData(getIdFromName(name));
}