onSubmitted property
A callback that is called when the value is submitted.
This field holds a function that will be called when the user submits the value (e.g., by pressing the enter key). The function takes a single parameter of type String, which represents the submitted value.
Implementation
final ValueChanged<String>? onSubmitted;