DropDownTextField.multiSelection constructor

const DropDownTextField.multiSelection({
  1. Key? key,
  2. dynamic controller,
  3. bool displayCompleteItem = false,
  4. dynamic initialValue,
  5. required List<DropDownValueModel> dropDownList,
  6. EdgeInsets? padding,
  7. TextStyle? textStyle,
  8. ValueSetter? onChanged,
  9. FormFieldValidator<String>? validator,
  10. bool isEnabled = true,
  11. double dropdownRadius = 12,
  12. IconProperty? dropDownIconProperty,
  13. InputDecoration? textFieldDecoration,
  14. int dropDownItemCount = 6,
  15. FocusNode? searchFocusNode,
  16. FocusNode? textFieldFocusNode,
  17. double listSpace = 0,
  18. bool clearOption = true,
  19. IconProperty? clearIconProperty,
  20. Color? submitButtonColor,
  21. String? submitButtonText,
  22. TextStyle? submitButtonTextStyle,
  23. ListPadding? listPadding,
  24. TextStyle? listTextStyle,
  25. CheckBoxProperty? checkBoxProperty,
  26. AutovalidateMode? autovalidateMode,
  27. Color? dropdownColor,
})

Implementation

const DropDownTextField.multiSelection(
    {Key? 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.dropdownColor})
    : 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,
      searchAutofocus = false,
      searchKeyboardType = null,
      searchShowCursor = null,
      singleController = null,
      searchDecoration = null,
      keyboardType = null,
      // keyboardHeight = 0,
      super(key: key);