onTextFieldValueChanged method

void onTextFieldValueChanged(
  1. String value
)

Implementation

void onTextFieldValueChanged(String value) {
  if (value.length > 0) {
    textController.text = value;
    isText = true;
    notifyListeners();
  } else {
    isText = false;
    notifyListeners();
  }
}