EmojiItem class

Represents a single emoji with its image source and metadata.

Constructors

EmojiItem({required String id, String? imagePath, Uint8List? imageBytes, EmojiImageSource sourceType = EmojiImageSource.asset, String? semanticLabel, dynamic data})
Creates an EmojiItem with the given properties.
const
EmojiItem.asset(String id, String assetPath, {String? semanticLabel, dynamic data})
Creates an emoji from a local asset.
factory
EmojiItem.file(String id, String filePath, {String? semanticLabel, dynamic data})
Creates an emoji from a file path.
factory
EmojiItem.memory(String id, Uint8List bytes, {String? semanticLabel, dynamic data})
Creates an emoji from raw bytes in memory.
factory
EmojiItem.network(String id, String url, {String? semanticLabel, dynamic data})
Creates an emoji from a network URL.
factory

Properties

data → dynamic
Optional custom data to pass through callbacks.
final
hashCode int
The hash code for this object.
no setteroverride
id String
Unique identifier for the emoji.
final
imageBytes Uint8List?
Raw bytes for memory-based images.
final
imagePath String?
The image source - can be asset path, network URL, file path, or null for memory.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel String?
Optional label for accessibility.
final
sourceType EmojiImageSource
Type of image source.
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