AtomicDropdown<T> constructor

const AtomicDropdown<T>({
  1. Key? key,
  2. required List<AtomicDropdownItem<T>> items,
  3. required ValueChanged<T?>? onChanged,
  4. T? value,
  5. String? hint,
  6. String? label,
  7. String? helperText,
  8. String? errorText,
  9. bool enabled = true,
  10. bool dense = false,
  11. bool isExpanded = false,
  12. Widget? icon,
  13. double iconSize = 24,
  14. bool isDense = false,
  15. double? menuMaxHeight,
  16. bool enableFilter = false,
  17. String filterHint = 'Search...',
  18. Widget itemBuilder(
    1. AtomicDropdownItem<T> item
    )?,
  19. Widget selectedItemBuilder(
    1. T value
    )?,
  20. BoxDecoration? dropdownDecoration,
  21. EdgeInsetsGeometry? margin,
  22. AlignmentGeometry alignment = AlignmentDirectional.centerStart,
})

Implementation

const AtomicDropdown({
  super.key,
  required this.items,
  required this.onChanged,
  this.value,
  this.hint,
  this.label,
  this.helperText,
  this.errorText,
  this.enabled = true,
  this.dense = false,
  this.isExpanded = false,
  this.icon,
  this.iconSize = 24,
  this.isDense = false,
  this.menuMaxHeight,
  this.enableFilter = false,
  this.filterHint = 'Search...',
  this.itemBuilder,
  this.selectedItemBuilder,
  this.dropdownDecoration,
  this.margin,
  this.alignment = AlignmentDirectional.centerStart,
});