Emoji class

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})
const

Properties

char String
char and character of emoji.
final
charRunes List<int>
Runes of Emoji Character
no setter
emojiGroup EmojiGroup
emojiGroup is emoji's group.
final
emojiSubgroup → EmojiSubgroup
emojiSubgroup is emoji's subgroup.
final
hashCode int
The hash code for this object.
no setterinherited
keywords List<String>
keywords list of keywords for emoji.
final
modifiable bool
modifiable true if emoji has skin.
final
name String
name of emoji.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shortName String
shortName and a digest name of emoji.
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.
byChar(String char) Emoji?
Returns Emoji by char and character
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
byName(String name) Emoji?
Returns Emoji by name
byShortName(String shortName) Emoji?
Returns Emoji by name as short name.
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