CountryButton constructor

const CountryButton({
  1. Key? key,
  2. required IsoCode isoCode,
  3. required dynamic onTap()?,
  4. TextStyle? textStyle,
  5. EdgeInsets padding = const EdgeInsets.fromLTRB(12, 16, 4, 16),
  6. double flagSize = 20,
  7. bool showFlag = true,
  8. bool showDialCode = true,
  9. bool showIsoCode = false,
  10. bool showDropdownIcon = true,
  11. 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.enabled = true,
});