CountryPickerDropdown constructor

const CountryPickerDropdown({
  1. Key? key,
  2. required ValueChanged<Country> onValuePicked,
  3. ItemFilter? itemFilter,
  4. Comparator<Country>? sortComparator,
  5. List<Country>? priorityList,
  6. ItemBuilder? itemBuilder,
  7. String? initialValue,
  8. bool isExpanded = false,
  9. double? itemHeight = kMinInteractiveDimension,
  10. ItemBuilder? selectedItemBuilder,
  11. bool isDense = false,
  12. Widget? underline,
  13. Color? dropdownColor,
  14. VoidCallback? onTap,
  15. Widget? icon,
  16. Color? iconDisabledColor,
  17. Color? iconEnabledColor,
  18. double iconSize = 24.0,
  19. Widget? hint,
  20. Widget? disabledHint,
  21. bool isFirstDefaultIfInitialValueNotProvided = true,
})

Implementation

const CountryPickerDropdown({super.key,
  required this.onValuePicked,
  this.itemFilter,
  this.sortComparator,
  this.priorityList,
  this.itemBuilder,
  this.initialValue,
  this.isExpanded = false,
  this.itemHeight = kMinInteractiveDimension,
  this.selectedItemBuilder,
  this.isDense = false,
  this.underline,
  this.dropdownColor,
  this.onTap,
  this.icon,
  this.iconDisabledColor,
  this.iconEnabledColor,
  this.iconSize = 24.0,
  this.hint,
  this.disabledHint,
  this.isFirstDefaultIfInitialValueNotProvided = true,
});