onSubmitted method
After submitting the textfield
Implementation
void onSubmitted(String value) {
FocusScope.of(context).unfocus();
if (widget.onSubmitted != null) {
widget.onSubmitted!(value);
}
}
After submitting the textfield
void onSubmitted(String value) {
FocusScope.of(context).unfocus();
if (widget.onSubmitted != null) {
widget.onSubmitted!(value);
}
}