DropDownTextField.multiSelection constructor
const
DropDownTextField.multiSelection({
- Key? key,
- dynamic controller,
- bool displayCompleteItem = false,
- dynamic initialValue,
- required List<
DropDownValueModel> dropDownList, - EdgeInsets? padding,
- TextStyle? textStyle,
- ValueSetter? onChanged,
- FormFieldValidator<
String> ? validator, - bool isEnabled = true,
- double dropdownRadius = 12,
- IconProperty? dropDownIconProperty,
- InputDecoration? textFieldDecoration,
- int dropDownItemCount = 6,
- FocusNode? searchFocusNode,
- FocusNode? textFieldFocusNode,
- double listSpace = 0,
- bool clearOption = true,
- IconProperty? clearIconProperty,
- Color? submitButtonColor,
- String? submitButtonText,
- TextStyle? submitButtonTextStyle,
- ListPadding? listPadding,
- TextStyle? listTextStyle,
- CheckBoxProperty? checkBoxProperty,
- AutovalidateMode? autovalidateMode,
- BoxDecoration? boxDecoration,
- EdgeInsets? boxMargin,
Implementation
const DropDownTextField.multiSelection({
super.key,
this.controller,
this.displayCompleteItem = false,
this.initialValue,
required this.dropDownList,
this.padding,
this.textStyle,
this.onChanged,
this.validator,
this.isEnabled = true,
this.dropdownRadius = 12,
this.dropDownIconProperty,
this.textFieldDecoration,
this.dropDownItemCount = 6,
this.searchFocusNode,
this.textFieldFocusNode,
this.listSpace = 0,
this.clearOption = true,
this.clearIconProperty,
this.submitButtonColor,
this.submitButtonText,
this.submitButtonTextStyle,
this.listPadding,
this.listTextStyle,
this.checkBoxProperty,
this.autovalidateMode,
this.boxDecoration,
this.boxMargin,
}) : assert(
initialValue == null || controller == null,
"you cannot add both initialValue and multiController\nset initial value using controller\n\tMultiValueDropDownController(data:initial value)",
),
assert(
!(controller != null && controller is! MultiValueDropDownController),
"controller must be type of MultiValueDropDownController",
),
multiController = controller,
isMultiSelection = true,
enableSearch = false,
readOnly = true,
searchTextStyle = null,
searchAutofocus = false,
searchKeyboardType = null,
searchShowCursor = null,
singleController = null,
searchDecoration = null,
keyboardType = null;