CountryFlag constructor

const CountryFlag({
  1. Key? key,
  2. required Country? country,
  3. CountryFlagMode mode = CountryFlagMode.emoji,
  4. CountryFlagStyle style = const CountryFlagStyle(),
  5. String unknownFlag = '🏳️',
  6. String svgUrlBuilder(
    1. String countryCode
    )?,
  7. CountryFlagSvgBuilder? svgBuilder,
  8. String? semanticsLabel,
})

Implementation

const CountryFlag({
  super.key,
  required this.country,
  this.mode = CountryFlagMode.emoji,
  this.style = const CountryFlagStyle(),
  this.unknownFlag = '🏳️',
  this.svgUrlBuilder,
  this.svgBuilder,
  this.semanticsLabel,
});