StreamEmojiContent class sealed

The content model for an emoji rendered by StreamEmoji.

StreamEmojiContent is a sealed type with two variants:

The content model is size-independent β€” sizing is controlled by the StreamEmoji widget.

{@tool snippet}

Create a Unicode emoji:

const emoji = StreamUnicodeEmoji('πŸ‘');

{@end-tool}

{@tool snippet}

Create a custom image emoji:

final emoji = StreamImageEmoji(
  url: Uri.parse('https://cdn.example.com/emoji/custom.png'),
);

{@end-tool}

See also:

Implementers
Annotations

Properties

hashCode β†’ int
The hash code for this object.
no setterinherited
runtimeType β†’ Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) β†’ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() β†’ String
A string representation of this object.
inherited

Operators

operator ==(Object other) β†’ bool
The equality operator.
inherited