CustomDropdown<T> constructor
const
CustomDropdown<T> ({
- Key? key,
- required String hint,
- required List<
T> items, - required String displayField(
- T
- Widget? prefixIcon,
- required void onChanged(
- T?
- Color borderColor = Colors.black,
- String? validator(
- T?
- Color backgroundColor = Colors.white,
- T? firstValue,
- bool label = false,
- InputBorder? border,
- 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,
});