onChangeInput method

dynamic onChangeInput(
  1. String valueInput,
  2. ValueChanged<PhoneNumber> onInputChanged
)

Implementation

onChangeInput(String valueInput, ValueChanged<PhoneNumber> onInputChanged) {
  phoneNumber = PhoneNumber(
    phoneNumber: "${selectedCountry?.dialCode}-$valueInput",
    isoCode: "",
    dialCode: selectedCountry?.dialCode,
  );
  onInputChanged(phoneNumber);

  update();
}