Emoji class

Constructors

Emoji({required String name, required String char, required String shortName, required EmojiGroup emojiGroup, required EmojiSubgroup emojiSubgroup, List<String> keywords = const [], bool modifiable = false})
Emoji class. name of emoji. char and character of emoji. shortName and a digest name of emoji, emojiGroup is emoji's group and emojiSubgroup is emoji's subgroup. keywords list of keywords for emoji. modifiable true if emoji has skin.
Emoji.byChar(String char)
Returns Emoji by char and character
factory
Emoji.byName(String name)
Returns Emoji by name
factory
Emoji.byShortName(String name)
Returns Emoji by name as short name.
factory

Properties

char String
final
charRunes List<int>
Runes of Emoji Character
no setter
emojiGroup EmojiGroup
final
emojiSubgroup EmojiSubgroup
final
hashCode int
The hash code for this object.
no setterinherited
keywords List<String>
final
modifiable bool
final
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shortName String
final

Methods

newSkin(fitzpatrick skinTone) Emoji
Returns current Emoji with New requested skinTone if modifiable, else Returns current Emoji
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

all() List<Emoji>
Get all Emojis
assemble(List<String> emojiChars) String
assemble emojis with emojiChars codes.
byGroup(EmojiGroup group) Iterable<Emoji>
Returns list of Emojis in a same group
byKeyword(String keyword) Iterable<Emoji>
Returns List of Emojis with Specific keyword
bySubgroup(EmojiSubgroup subgroup) Iterable<Emoji>
Returns list of Emojis in a same subgroup
disassemble(String emoji, {bool noSkin = false}) List<String>
disassemble emoji to list of emojis, without skin tones if noSkin be true.
isFitzpatrick(String emoji) bool
returns true if emoji is a Fitzpatrick Emoji.
modify(String emoji, fitzpatrick skinTone) String
Modify skin tone of emoji by requested skinTone
stabilize(String emoji, {bool skin = true, bool gender = false}) String
stabilize skin and gender of emoji, if true.

Constants

variationSelector16 → const int
ZWJ → const int