PhoneNumberEditingController.fromCountry constructor

PhoneNumberEditingController.fromCountry(
  1. Country country
)

Creates a controller with given default country selected.

Implementation

PhoneNumberEditingController.fromCountry(Country country)
    : nationalNumberController = TextEditingController(),
      countryNotifier = ValueNotifier(country),
      _value = PhoneNumber.empty.copyWith(country: country) {
  _initialize();
}