CountryPicker constructor
const
CountryPicker({
- Key? key,
- String? labelText,
- String? hintText,
- bool enabled = true,
- String? validator()?,
- String? prefixText,
- bool isFilled = false,
- Color? focusedBorderColor,
- OutlineInputBorder? inputBorder,
- double? borderRadius,
- EdgeInsets? contentPadding,
- Widget? suffixIcon,
- Widget? prefixIcon,
- OutlineInputBorder? errorBorder,
- TextStyle? errorStyle,
- TextStyle? hintStyle,
- required ValueNotifier<
({String code, String name})?> selectedCountry, - dynamic onChanged()?,
- 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,
});