FlutstrapDropdown<T> constructor
const
FlutstrapDropdown<T> ({
- Key? key,
- required List<
FSDropdownItem< items,T> > - T? value,
- ValueChanged<
T?> ? onChanged, - String? placeholder,
- String? labelText,
- String? errorText,
- String? helperText,
- bool enabled = true,
- bool isExpanded = false,
- FSDropdownVariant variant = FSDropdownVariant.primary,
- FSDropdownSize size = FSDropdownSize.md,
- Widget? prefixIcon,
- Widget? suffixIcon,
- bool showSearch = false,
- String? searchHint,
- InputDecoration? decoration,
- BorderRadiusGeometry? borderRadius,
- Duration searchDebounceDelay = _DropdownConstants.searchDebounceDelay,
Implementation
const FlutstrapDropdown({
super.key,
required this.items,
this.value,
this.onChanged,
this.placeholder,
this.labelText,
this.errorText,
this.helperText,
this.enabled = true,
this.isExpanded = false,
this.variant = FSDropdownVariant.primary,
this.size = FSDropdownSize.md,
this.prefixIcon,
this.suffixIcon,
this.showSearch = false,
this.searchHint,
this.decoration,
this.menuMaxHeight = _DropdownConstants.defaultMenuMaxHeight,
this.borderRadius,
this.searchDebounceDelay = _DropdownConstants.searchDebounceDelay,
});