TextMessageSender class
Sends text messages to the agent and emits a loopback message so the UI can reflect the user's input immediately.
- Implemented types
Constructors
- TextMessageSender({required Room room, String topic = 'lk.chat'})
Properties
Methods
-
dispose(
) → Future< void> -
override
-
messages(
) → Stream< ReceivedMessage> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
SentMessage message) → Future< void> -
override
-
sendText(
String text) → Future< void> - Convenience helper for sending text without constructing a SentMessage.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited