CustomDropdown<T> constructor

const CustomDropdown<T>({
  1. Key? key,
  2. required String hint,
  3. required List<T> items,
  4. required String displayField(
    1. T
    ),
  5. Widget? prefixIcon,
  6. required void onChanged(
    1. T?
    ),
  7. Color borderColor = Colors.black,
  8. String? validator(
    1. T?
    )?,
  9. Color backgroundColor = Colors.white,
  10. T? firstValue,
  11. bool label = false,
  12. InputBorder? border,
  13. bool readOnly = false,
})

Implementation

const CustomDropdown({
  super.key,
  required this.hint,
  required this.items,
  required this.displayField,
  this.prefixIcon,
  required this.onChanged,
  this.borderColor = Colors.black,
  this.validator,
  this.backgroundColor = Colors.white,
  this.firstValue,
  this.label = false,
  this.border,
  this.readOnly = false,
});