ModulaDropdownButton<T> constructor

const ModulaDropdownButton<T>({
  1. required List<T> items,
  2. Key? key,
  3. T? selectedItem,
  4. List<T>? selectedItems,
  5. bool isMultiSelect = false,
  6. String? hintText,
  7. String? labelText,
  8. String? errorText,
  9. ValueChanged<T?>? onChanged,
  10. ValueChanged<List<T>>? onMultiChanged,
  11. bool isSearchable = false,
  12. String itemLabelBuilder(
    1. T
    )?,
  13. Widget itemBuilder(
    1. T
    )?,
  14. bool enabled = true,
  15. Color? dropdownBackgroundColor,
  16. Color? textColor,
  17. Color? menuBackgroundColor,
  18. Color? menuItemTextColor,
})

Implementation

const ModulaDropdownButton({
  required this.items,
  super.key,
  this.selectedItem,
  this.selectedItems,
  this.isMultiSelect = false,
  this.hintText,
  this.labelText,
  this.errorText,
  this.onChanged,
  this.onMultiChanged,
  this.isSearchable = false,
  this.itemLabelBuilder,
  this.itemBuilder,
  this.enabled = true,
  this.dropdownBackgroundColor,
  this.textColor,
  this.menuBackgroundColor,
  this.menuItemTextColor,
});