onSubmitted method

void onSubmitted(
  1. String value
)

After submitting the textfield

Implementation

void onSubmitted(String value) {
  FocusScope.of(context).unfocus();
  if (widget.onSubmitted != null) {
    widget.onSubmitted!(value);
  }
}