Emoji class

Represents an emoji and its metadata.

Constructors

Emoji({required String name, required String emoji, required String unified, required String? nonQualified, required String shortName, required List<String> shortNames, required String? text, required List<String>? texts, required Category category, required String subcategory, required int sortOrder, required String addedIn, required bool hasImgApple, required bool hasImgGoogle, required bool hasImgTwitter, required bool hasImgFacebook, required List<Emoji>? skinVariations, required String? obsoletes, required String? obsoletedBy})
const
Emoji.fromJson(String source)
factory
Emoji.fromMap(Map<String, dynamic> map)
factory

Properties

addedIn → String
Emoji version in which this codepoint/sequence was added (previously Unicode version).
final
category → Category
The category the emoji is in.
final
emoji → String
The emoji itself, as a UTF-8 string.
final
hashCode → int
The hash code for this object.
no setteroverride
hasImgApple → bool
Whether the emoji has an image on Apple platforms.
final
hasImgFacebook → bool
Whether the emoji has an image on Facebook platforms.
final
hasImgGoogle → bool
Whether the emoji has an image on Google platforms.
final
hasImgTwitter → bool
Whether the emoji has an image on Twitter platforms.
final
name → String
The offical Unicode name.
final
nonQualified → String?
For emoji that also have usage without a variation selector, that version is included here (otherwise is null).
final
obsoletedBy → String?
This emoji is no longer used, in preference of the obsoletedBy emoji.
final
obsoletes → String?
Emoji that are no longer used, in preference of this emoji.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shortName → String
The commonly-agreed upon short name for the image, as supported in campfire, github etc via the :colon-syntax:
final
shortNames → List<String>
An array of all the known short names.
final
skinVariations → List<Emoji>?
For emoji with multiple skin tone variations, a list of alternative glyphs, keyed by the skin tone. For emoji that support multiple skin tones within a single emoji, each skin tone is separated by a dash character.
final
sortOrder → int
Global sorting index for all emoji, based on Unicode CLDR ordering.
final
subcategory → String
The subcategory the emoji is in.
final
text → String?
An ASCII version of the emoji (e.g. :)), or null where none exists.
final
texts → List<String>?
An array of ASCII emoji that should convert into this emoji. Each ASCII emoji will only appear against a single emoji entry.
final
unified → String
The Unicode codepoint, as 4-5 hex digits. Where an emoji needs 2 or more codepoints, they are specified like 1F1EA-1F1F8. For emoji that need to specifiy a variation selector (-FE0F), that is included here.
final

Methods

copyWith({String? name, String? emoji, String? unified, String? nonQualified, String? shortName, List<String>? shortNames, String? text, List<String>? texts, Category? category, String? subcategory, int? sortOrder, String? addedIn, bool? hasImgApple, bool? hasImgGoogle, bool? hasImgTwitter, bool? hasImgFacebook, List<Emoji>? skinVariations, String? obsoletes, String? obsoletedBy}) → Emoji
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → String
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override