changeText method

void changeText(
  1. String value, {
  2. bool submit = false,
})

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);
  }
}