TodayDropdown<T> constructor
const
TodayDropdown<T> ({
- Key? key,
- String? uuid,
- dynamic value,
- TodayDropdownStyle style = TodayDropdownStyle.extended,
- required List<
TodayDropdownItem> items, - TodayDropdownTrigger trigger = TodayDropdownTrigger.button,
- String? label,
- String? optionalLabel,
- TodayIcon? icon,
- String? description,
- bool error = false,
- String? errorMessage,
- Color? placeholderColor,
- String placeholder = 'Select one...',
- List<
TodayTag> ? tags, - dynamic onChanged(
- TodayDropdownItem itemSelected
- TodayDropdownPosition position = TodayDropdownPosition.left,
- bool searchable = false,
- String searchPlaceholder = 'Search...',
- bool disabled = false,
- bool showDescription = true,
- TodayDropdownButtonOverride? buttonOverride,
- TodaySvgIcon? buttonOverrideIcon,
- bool buttonOverrideIconOnly = false,
- TodayButtonIconDirection buttonIconDirectionOverride = TodayButtonIconDirection.left,
- Offset? offset,
- double? dropdownItemSize,
- bool noWrap = false,
- bool autoFocus = false,
- bool linkFocusStyle = false,
- bool emphasized = false,
- TodayDropdownLinkFocusStyle linkFocusStyleType = TodayDropdownLinkFocusStyle.link,
- Widget? customWidget,
- 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,
});