StreamEmojiData class
A data class representing a single emoji entry.
Used by the emoji picker and reaction system to provide a curated, self-contained set of emojis without relying on external packages.
{@tool snippet}
const emoji = StreamEmojiData(
name: 'grinning face',
emoji: '😀',
shortName: 'grinning',
shortNames: ['grinning'],
sortOrder: 1,
);
{@end-tool}
See also:
- streamSupportedEmojis, a curated map of commonly used emojis.
- StreamEmojiPickerSheet, which displays emojis in a picker grid.
- Annotations
Constructors
Properties
- emoji → String
-
The emoji character itself (e.g., "😀").
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- name → String
-
The human-readable name of the emoji (e.g., "Grinning Face").
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shortName → String
-
The canonical short name used as a reaction type identifier
(e.g., "grinning").
final
-
shortNames
→ List<
String> -
All known short name aliases for this emoji, including shortName.
final
- sortOrder → int
-
The sort order for display purposes, matching the Unicode CLDR ordering.
final
Methods
-
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.
override