getCamelCaseName static method

String getCamelCaseName(
  1. String id
)

Returns the name of the emoji from the id in camel case.

For example: 1f603 => smileWithBigEyes

Throws a EmojiNotFoundException when no emoji with id exists.

See also:

Implementation

static String getCamelCaseName(String id) {
  try {
    final emoji = fromId(id);

    return emoji.name;
  } catch (e) {
    throw EmojiNotFoundException.fromId(id);
  }
}