FlagsDropDown constructor

const FlagsDropDown({
  1. Key? key,
  2. ValueKey? flagsButtonKey,
  3. String? initialCountryCode = 'BD',
  4. List<Country> countries = const [],
  5. List<String> favorite = const [],
  6. bool showDropdownIcon = true,
  7. Widget dropdownIcon = const Icon(Icons.arrow_drop_down),
  8. Position dropdownIconPosition = Position.leading,
  9. bool showDialogCountryFlag = true,
  10. BoxDecoration dropdownDecoration = const BoxDecoration(),
  11. EdgeInsetsGeometry flagsButtonPadding = EdgeInsets.zero,
  12. EdgeInsets flagsButtonMargin = EdgeInsets.zero,
  13. double? flagWidth = 32,
  14. TextStyle? dropdownTextStyle,
  15. bool disableFlagTap = false,
  16. String? languageCode,
  17. bool? rltSupport,
  18. PickerDialogStyle? pickerDialogStyle,
  19. Widget? favoriteIcon,
  20. Position favoriteIconPosition = Position.leading,
  21. bool? enableFavoriteIcon,
  22. Position fieldCountryCodePosition = Position.trailing,
  23. Position favoriteCountryCodePosition = Position.leading,
  24. Position dialogCountryCodePosition = Position.trailing,
  25. ValueChanged<Country>? onCountryChanged,
  26. bool countryCodeDisable = false,
  27. bool showFieldCountryFlag = true,
  28. double? countryPickerDialogBoxHeight,
})

Implementation

const FlagsDropDown({
  super.key,
  this.flagsButtonKey,
  this.initialCountryCode = 'BD',
  this.countries = const [],
  this.favorite = const [],
  this.showDropdownIcon = true,
  this.dropdownIcon = const Icon(Icons.arrow_drop_down),
  this.dropdownIconPosition = Position.leading,
  this.showDialogCountryFlag = true,
  this.dropdownDecoration = const BoxDecoration(),
  this.flagsButtonPadding = EdgeInsets.zero,
  this.flagsButtonMargin = EdgeInsets.zero,
  this.flagWidth = 32,
  this.dropdownTextStyle,
  this.disableFlagTap = false,
  this.languageCode,
  this.rltSupport,
  this.pickerDialogStyle,
  this.favoriteIcon,
  this.favoriteIconPosition = Position.leading,
  this.enableFavoriteIcon,
  this.fieldCountryCodePosition = Position.trailing,
  this.favoriteCountryCodePosition = Position.leading,
  this.dialogCountryCodePosition = Position.trailing,
  this.onCountryChanged,
  this.countryCodeDisable = false,
  this.showFieldCountryFlag = true,
  this.countryPickerDialogBoxHeight,
});