inputKeypress method

void inputKeypress(
  1. dynamic newValue,
  2. dynamic valid,
  3. dynamic validationMessage
)

Implementation

void inputKeypress(newValue, valid, validationMessage) {
  _validate(valid, validationMessage);
  _pristine = false;
  inputText = newValue;
  _keypressController.add(newValue);
  // If this update is removed, ensure that the test logic of 'error message
  // updated with input change' works manually.
  updateBottomPanelState();
}