DropdownFormField<T> constructor
const
DropdownFormField<T> ({
- Key? key,
- required ListTile dropdownItemFn(),
- required Widget displayItemFn(
- String? item
- required DropDownFind findFn,
- FocusNode? focusNode,
- bool filterFn()?,
- bool autoFocus = false,
- bool isProduct = false,
- DropdownEditingController<
String> ? controller, - String? validator()?,
- InputDecoration? decoration,
- Color? dropdownColor,
- void onChanged(
- String item
- void onSaved()?,
- double? dropdownHeight,
- TextStyle? searchTextStyle,
- String emptyText = "No matching found!",
- String emptyActionText = 'Create new',
- Future<
void> onEmptyActionPressed()?, - bool selectedFn()?,
Implementation
const DropdownFormField({
Key? key,
required this.dropdownItemFn,
required this.displayItemFn,
required this.findFn,
this.focusNode,
this.filterFn,
this.autoFocus = false,
this.isProduct = false,
this.controller,
this.validator,
this.decoration,
this.dropdownColor,
this.onChanged,
this.onSaved,
this.dropdownHeight,
this.searchTextStyle,
this.emptyText = "No matching found!",
this.emptyActionText = 'Create new',
this.onEmptyActionPressed,
this.selectedFn,
}) : super(key: key);