onSubmitted property
final
Callback, called when the text is submitted.
This callback is fired only when the text value was not yet submitted:
- submit action of TextEditingController was emitted;
- submit was manually called.
Implementation
final FutureOr<void> Function(TextFieldState)? onSubmitted;