Helper interface for message content management.
Manages content factories (by message type) and provides core functionality for:
- Registering type-specific content factories (e.g., text, image, command)
- Parsing raw content data into strongly-typed Content instances
Content represents the payload of a message (text, file, command, etc.) and is categorized by message type identifiers (e.g., "01" for text, "88" for command).
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
-
getContentFactory(
String msgType) → ContentFactory? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseContent(
Object? content) → Content? - Parses raw content data into a strongly-typed Content instance.
-
setContentFactory(
String msgType, ContentFactory factory) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited