changeText method
Changes the text of the text field.
value The new text for the text field.
submit Whether to submit the text field after changing the text.
Implementation
void changeText(String value, {bool submit = false}) {
effectiveController.text = value;
if (submit) {
widget.onSubmitted?.call(value);
}
}