CuReDropdown constructor

const CuReDropdown({
  1. Key? key,
  2. required List<CuReDropdownItem> items,
  3. required ValueChanged<CuReDropdownItem> onChanged,
  4. int? selectedIndex,
  5. double dropdownWidth = 200,
  6. double dropdownMaxHeight = 260,
  7. double edgePadding = 8,
  8. DropdownDirection preferDirection = DropdownDirection.auto,
  9. Icon? icon,
  10. bool? showSelectedItem = true,
  11. Color? color,
  12. bool? showBorder = false,
  13. String? title,
  14. bool? solid,
  15. bool? disabled,
  16. BuildContext? context,
})

Implementation

const CuReDropdown({
  Key? key,
  required this.items,
  required this.onChanged,
  this.selectedIndex,
  this.dropdownWidth = 200,
  this.dropdownMaxHeight = 260,
  this.edgePadding = 8,
  this.preferDirection = DropdownDirection.auto,
  this.icon,
  this.showSelectedItem = true,
  this.color,
  this.showBorder = false,
  this.title,
  this.solid,
  this.disabled,
  this.context,
}) : super(key: key);