CountryPicker constructor

const CountryPicker({
  1. Key? key,
  2. String? labelText,
  3. String? hintText,
  4. bool enabled = true,
  5. String? validator(
    1. ({String? code, String name})?
    )?,
  6. String? prefixText,
  7. bool isFilled = false,
  8. Color? focusedBorderColor,
  9. OutlineInputBorder? inputBorder,
  10. double? borderRadius,
  11. EdgeInsets? contentPadding,
  12. Widget? suffixIcon,
  13. Widget? prefixIcon,
  14. OutlineInputBorder? errorBorder,
  15. TextStyle? errorStyle,
  16. TextStyle? hintStyle,
  17. required ValueNotifier<({String code, String name})?> selectedCountry,
  18. dynamic onChanged(
    1. ({String code, String name})?
    )?,
  19. TextStyle? labelStyle,
})

Constructor

Implementation

const CountryPicker({
  super.key,
  // required this.onSelect,
  this.labelText,
  this.hintText,
  this.enabled = true,
  this.validator,
  this.prefixText,
  this.isFilled = false,
  this.focusedBorderColor,
  this.inputBorder,
  this.borderRadius,
  this.contentPadding,
  this.suffixIcon,
  this.prefixIcon,
  this.errorBorder,
  this.errorStyle,
  this.hintStyle,
  required this.selectedCountry,
  this.onChanged,
  this.labelStyle,
});