CountryCodePicker constructor

const CountryCodePicker({
  1. Key? key,
  2. required ValueChanged<Country> onChanged,
  3. List<Country>? countries,
  4. List<String> favorite = const [],
  5. String? initialSelection,
  6. CountryPickerStyle style = const CountryPickerStyle(),
  7. bool showFlag = true,
  8. bool showDialCode = true,
  9. bool compact = false,
  10. Country? initialCountryOverride,
})

Implementation

const CountryCodePicker({
  super.key,
  required this.onChanged,
  this.countries,
  this.favorite = const [],
  this.initialSelection,
  this.style = const CountryPickerStyle(),
  this.showFlag = true,
  this.showDialCode = true,
  this.compact = false,
  this.initialCountryOverride,
});