onSendMessage property

void Function(String text)? onSendMessage
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;