DropdownField<T> constructor
const
DropdownField<T> ({
- Key? key,
- required List<
T> items, - required T? selectedItem,
- required String itemAsString(
- T
- required dynamic onChanged(
- T?
- TextStyle? textStyle,
- String? labelText,
- String? validator(
- T?
- bool readOnly = false,
- bool compare(
- T?,
- T?
- bool showSearchBox = false,
- TextStyle? labelStyle,
- bool autoValidate = false,
Implementation
const DropdownField({
super.key,
required this.items,
required this.selectedItem,
required this.itemAsString,
required this.onChanged,
this.textStyle,
this.labelText,
this.validator,
this.readOnly = false,
this.compare,
this.showSearchBox = false,
this.labelStyle,
this.autoValidate = false,
});