CustomDropdown<T> constructor

const CustomDropdown<T>({
  1. Key? key,
  2. String? label,
  3. T? value,
  4. required List<T> items,
  5. bool enabled = true,
  6. Widget? prefix,
  7. Widget? suffix,
  8. bool rotateSuffixOnOpen = false,
  9. bool rotatePrefixOnOpen = false,
  10. double iconRotationAngle = 90.0,
  11. String? validator(
    1. T?
    )?,
  12. required CustomDropdownConfig config,
  13. required Widget itemBuilder(
    1. T item
    ),
  14. required Widget selectedBuilder(
    1. T? item
    ),
  15. required ValueChanged<T?> onChanged,
  16. bool searchMatcher(
    1. T item,
    2. 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,
});