onSendMessage property
final
Called when the user submits the input field. Wire this to your
client: call AiChatController/sendUserMessage, then stream the
provider events into the controller.
Implementation
final void Function(String text)? onSendMessage;