setCountry method

void setCountry(
  1. Country? selectedCountry
)

Implementation

void setCountry(Country? selectedCountry) {
  cont = selectedCountry;
  formKey.currentState?.reset();

  setPhoneLength(selectedCountry?.phoneNumberLength ?? 0);
  notifyListeners();
}