Dropdown.multiSelection constructor

const Dropdown.multiSelection({
  1. Key? key,
  2. required List<DropdownItem> list,
  3. required dynamic onMultipleItemListener(
    1. List<DropdownItem> selectedItemList
    )?,
  4. List<String>? selectedIds,
  5. String title = "",
  6. String labelText = "",
  7. String hintText = "",
  8. bool enabled = true,
  9. TextAlign textAlign = TextAlign.start,
  10. InputBorder border = const OutlineInputBorder(),
  11. InputDecoration? decoration,
  12. bool searchBox = true,
  13. String prefixSeparator = _has,
  14. String suffixSeparator = _comma,
  15. String searchBoxHintText = _searchHere,
  16. IconData prefixSearchBoxIcon = _icSearch,
  17. Color selectedBackgroundColor = Colors.black12,
  18. String negativeButtonText = _cancel,
  19. String positiveButtonText = _ok,
  20. Color negativeButtonTextColor = Colors.red,
  21. Color positiveButtonTextColor = Colors.black,
  22. bool isAllSelection = false,
  23. Color checkBoxActiveColor = Colors.black,
  24. bool isAddItem = false,
  25. bool dismissWhenTapAddItem = true,
  26. dynamic onTapAddItem(
    1. String searchValue
    )?,
  27. Widget? addItemWidget,
})

constructor for single multi dropdown

Implementation

const Dropdown.multiSelection(
    {Key? key,
    required this.list,
    required this.onMultipleItemListener,
    this.selectedIds,
    this.title = "",
    this.labelText = "",
    this.hintText = "",
    this.enabled = true,
    this.textAlign = TextAlign.start,
    this.border = const OutlineInputBorder(),
    this.decoration,
    this.searchBox = true,
    this.prefixSeparator = _has,
    this.suffixSeparator = _comma,
    this.searchBoxHintText = _searchHere,
    this.prefixSearchBoxIcon = _icSearch,
    this.selectedBackgroundColor = Colors.black12,
    this.negativeButtonText = _cancel,
    this.positiveButtonText = _ok,
    this.negativeButtonTextColor = Colors.red,
    this.positiveButtonTextColor = Colors.black,
    this.isAllSelection = false,
    this.checkBoxActiveColor = Colors.black,
    this.isAddItem = false,
    this.dismissWhenTapAddItem = true,
    this.onTapAddItem,
    this.addItemWidget})
    : selectedId = null,
      onSingleItemListener = null,
      _isMultiple = true,
      super(key: key);