CountryButton constructor
const
CountryButton({
- Key? key,
- required IsoCode isoCode,
- required dynamic onTap()?,
- TextStyle? textStyle,
- EdgeInsets padding = const EdgeInsets.fromLTRB(12, 16, 4, 16),
- double flagSize = 20,
- bool showFlag = true,
- bool showDialCode = true,
- bool showIsoCode = false,
- bool showDropdownIcon = true,
- Color? dropdownIconColor,
- bool enabled = true,
Implementation
const CountryButton({
super.key,
required this.isoCode,
required this.onTap,
this.textStyle,
this.padding = const EdgeInsets.fromLTRB(12, 16, 4, 16),
this.flagSize = 20,
this.showFlag = true,
this.showDialCode = true,
this.showIsoCode = false,
this.showDropdownIcon = true,
this.dropdownIconColor,
this.enabled = true,
});