TodayDropdown<T> constructor

const TodayDropdown<T>({
  1. Key? key,
  2. String? uuid,
  3. dynamic value,
  4. TodayDropdownStyle style = TodayDropdownStyle.extended,
  5. required List<TodayDropdownItem> items,
  6. TodayDropdownTrigger trigger = TodayDropdownTrigger.button,
  7. String? label,
  8. String? optionalLabel,
  9. TodayIcon? icon,
  10. bool navDropdown = false,
  11. TodayUserIcon? navIcon,
  12. String? description,
  13. bool error = false,
  14. String? errorMessage,
  15. Color? placeholderColor,
  16. String placeholder = 'Select one...',
  17. List<TodayTag>? tags,
  18. dynamic onChanged(
    1. TodayDropdownItem itemSelected
    )?,
  19. TodayDropdownPosition position = TodayDropdownPosition.left,
  20. bool searchable = false,
  21. String searchPlaceholder = 'Search...',
  22. bool disabled = false,
  23. bool showDescription = true,
  24. TodayDropdownButtonOverride? buttonOverride,
  25. TodaySvgIcon? buttonOverrideIcon,
  26. bool buttonOverrideIconOnly = false,
  27. TodayButtonIconDirection buttonIconDirectionOverride = TodayButtonIconDirection.left,
  28. Offset? offset,
  29. double? dropdownItemSize,
  30. bool noWrap = false,
  31. bool autoFocus = false,
  32. bool linkFocusStyle = false,
  33. bool emphasized = false,
  34. TodayDropdownLinkFocusStyle linkFocusStyleType = TodayDropdownLinkFocusStyle.link,
  35. Widget? customWidget,
  36. Widget? customIcon,
})

Implementation

const TodayDropdown({
  super.key,
  this.uuid,
  this.value,
  this.style = TodayDropdownStyle.extended,
  required this.items,
  this.trigger = TodayDropdownTrigger.button,
  this.label,
  this.optionalLabel,
  this.icon,
  this.navDropdown = false,
  this.navIcon,
  this.description,
  this.error = false,
  this.errorMessage,
  this.placeholderColor,
  this.placeholder = 'Select one...',
  this.tags,
  this.onChanged,
  this.position = TodayDropdownPosition.left,
  this.searchable = false,
  this.searchPlaceholder = 'Search...',
  this.disabled = false,
  this.showDescription = true,
  this.buttonOverride,
  this.buttonOverrideIcon,
  this.buttonOverrideIconOnly = false,
  this.buttonIconDirectionOverride = TodayButtonIconDirection.left,
  this.offset,
  this.dropdownItemSize,
  this.noWrap = false,
  this.autoFocus = false,
  this.linkFocusStyle = false,
  this.emphasized = false,
  this.linkFocusStyleType = TodayDropdownLinkFocusStyle.link,
  this.customWidget,
  this.customIcon,
});