CustomDropdown<T> constructor
const
CustomDropdown<T> ({
- Key? key,
- String? label,
- T? value,
- required List<
T> items, - bool enabled = true,
- Widget? prefix,
- Widget? suffix,
- bool rotateSuffixOnOpen = false,
- bool rotatePrefixOnOpen = false,
- double iconRotationAngle = 90.0,
- String? validator(
- T?
- required CustomDropdownConfig config,
- required Widget itemBuilder(
- T item
- required Widget selectedBuilder(
- T? item
- required ValueChanged<
T?> onChanged, - bool searchMatcher(
- T item,
- String query
Implementation
const CustomDropdown({
super.key,
this.label,
this.value,
required this.items,
this.enabled = true,
this.prefix,
this.suffix,
this.rotateSuffixOnOpen = false,
this.rotatePrefixOnOpen = false,
this.iconRotationAngle = 90.0,
this.validator,
required this.config,
required this.itemBuilder,
required this.selectedBuilder,
required this.onChanged,
this.searchMatcher,
});