CountryCodeChip constructor

CountryCodeChip({
  1. Key? key,
  2. required IsoCode isoCode,
  3. TextStyle textStyle = const TextStyle(),
  4. bool showFlag = true,
  5. bool showDialCode = true,
  6. EdgeInsets padding = const EdgeInsets.all(20),
  7. double flagSize = 20,
  8. TextDirection? textDirection,
  9. bool showIsoCode = false,
})

Implementation

CountryCodeChip({
  super.key,
  required IsoCode isoCode,
  this.textStyle = const TextStyle(),
  this.showFlag = true,
  this.showDialCode = true,
  this.padding = const EdgeInsets.all(20),
  this.flagSize = 20,
  this.textDirection,
  this.showIsoCode = false,
}) : country = Country(isoCode, '');