preserveComposeText property
When true, hiding the composer (via showComposer = false) preserves the written text in the composer field until onSend is triggered. When false (default), hiding the composer discards the current input.
Implementation
final bool preserveComposeText;