NmAgentMessage class
One chat message.
- Annotations
Constructors
- NmAgentMessage({required String text, required NmAgentRole role, String? timeLabel, Uint8List? image, String? id})
-
Creates an NmAgentMessage.
const
Properties
- fromUser → bool
-
Whether the user wrote this message.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
Stable id for updates and keys, if the backend has one.
final
- image → Uint8List?
-
Optional attached image (PNG/JPEG bytes).
final
- role → NmAgentRole
-
Who wrote the message.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
Message body (may be empty when only an image is attached).
final
- timeLabel → String?
-
Pre-formatted time or author line ("14:28 Bot").
final
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