setCountryAndPhoneNumber method

void setCountryAndPhoneNumber(
  1. Country country,
  2. String phoneNumber
)

Sets the country and phone number programmatically.

Implementation

void setCountryAndPhoneNumber(Country country, String phoneNumber) {
  setState(() {
    _selectedCountry = country;
    _phoneNumberController.text = phoneNumber;
  });
}