onSend property
Overrides what pressing send does.
The default sends text through controller with sendOptions. Supply
this when a turn needs something the view does not own — attachments the
app picked, for instance — and clear that state here, since the view
cannot know when it has been consumed. sendOptions is then yours to
pass on or ignore.
Implementation
final ValueChanged<String>? onSend;