ModulaDropdown<T> constructor

const ModulaDropdown<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. TextStyle? selectedTextStyle,
  16. bool showSelectedItemsAsChips = false,
  17. ValueChanged<T>? onChipRemoved,
  18. Color? fillColor,
  19. Color? borderColor,
  20. Color? chipBackgroundColor,
  21. Color? chipTextColor,
  22. Color? menuBackgroundColor,
})

Implementation

const ModulaDropdown({
  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.selectedTextStyle,
  this.showSelectedItemsAsChips = false,
  this.onChipRemoved,
  this.fillColor,
  this.borderColor,
  this.chipBackgroundColor,
  this.chipTextColor,
  this.menuBackgroundColor,
});