changeText method

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

Changes the text of the attached text field.

Parameters:

  • value (String, required): The new text value.
  • submit (bool, optional): Whether to submit the form after changing the text.

Throws: AssertionError if feature is not attached.

Implementation

void changeText(String value, {bool submit = false}) {
  assert(attached, 'Feature not attached');
  _inputState!.changeText(value, submit: submit);
}