submit property
Takes the highlighted option (a tag input adds the words as a tag too,
a command palette runs the highlighted command): the input's
onEditingComplete, as onEditingComplete: field.submit, with no
onSubmitted.
The field keeps the focus after Enter that way, ready for the next
words. With onSubmitted, Flutter restarts the text input's
connection after Enter; on the web the restarted input never takes the
browser's focus, and letters stop reaching a field that still looks
focused.
Implementation
final VoidCallback submit;