CountryCodePicker constructor
CountryCodePicker({
- ValueChanged<
CountryCode> ? onChanged, - ValueChanged<
CountryCode?> ? onInit, - String? initialSelection,
- List<
String> favorite = const [], - TextStyle? textStyle,
- EdgeInsetsGeometry padding = const EdgeInsets.all(8.0),
- bool showCountryOnly = false,
- InputDecoration searchDecoration = const InputDecoration(),
- TextStyle? searchStyle,
- TextStyle? dialogTextStyle,
- WidgetBuilder? emptySearchBuilder,
- bool showOnlyCountryWhenClosed = false,
- bool alignLeft = false,
- bool showFlag = true,
- bool? showFlagDialog,
- bool hideMainText = false,
- bool? showFlagMain,
- Decoration? flagDecoration,
- dynamic builder()?,
- double flagWidth = 32.0,
- bool enabled = true,
- TextOverflow textOverflow = TextOverflow.ellipsis,
- Color? barrierColor,
- Color? backgroundColor,
- BoxDecoration? boxDecoration,
- Comparator<
CountryCode> ? comparator, - List<
String> ? countryFilter, - bool hideSearch = false,
- bool showDropDownButton = false,
- Size? dialogSize,
- Color? dialogBackgroundColor,
- Icon closeIcon = const Icon(Icons.close),
- List<
Map< countryList = codes,String, String> > - Key? key,
Implementation
CountryCodePicker({
this.onChanged,
this.onInit,
this.initialSelection,
this.favorite = const [],
this.textStyle,
this.padding = const EdgeInsets.all(8.0),
this.showCountryOnly = false,
this.searchDecoration = const InputDecoration(),
this.searchStyle,
this.dialogTextStyle,
this.emptySearchBuilder,
this.showOnlyCountryWhenClosed = false,
this.alignLeft = false,
this.showFlag = true,
this.showFlagDialog,
this.hideMainText = false,
this.showFlagMain,
this.flagDecoration,
this.builder,
this.flagWidth = 32.0,
this.enabled = true,
this.textOverflow = TextOverflow.ellipsis,
this.barrierColor,
this.backgroundColor,
this.boxDecoration,
this.comparator,
this.countryFilter,
this.hideSearch = false,
this.showDropDownButton = false,
this.dialogSize,
this.dialogBackgroundColor,
this.closeIcon = const Icon(Icons.close),
this.countryList = codes,
Key? key,
}) : super(key: key);