onUserMessageSent property
Called with the trimmed text whenever the user sends a message. Lets the host mirror what the user last asked — typically to stash a guest's query and replay it via initialMessage after they sign in. Observation only; it cannot block or alter the send.
Implementation
final ValueChanged<String>? onUserMessageSent;