controllerSetText method

void controllerSetText(
  1. String controllerText
)

Implementation

void controllerSetText(String controllerText) {
  if (internalValue == controllerText) {
    return;
  }
  if (controllerText.isEmpty) {
    final i = internalValue;
    if (i == null || i.isEmpty) {
      return;
    }
    internalValue = null;
    valueController.add(null);
    validation = validateFunc?.call(controllerText);
    return;
  }

  internalValue = controllerText;
  valueController.add(controllerText);
  validation = validateFunc?.call(controllerText);
}