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. double? width,
  10. double? height,
  11. TextAlign textAlign = TextAlign.start,
  12. String? fontFamily,
  13. InputBorder border = const OutlineInputBorder(),
  14. InputDecoration? decoration,
  15. bool searchBox = true,
  16. String prefixSeparator = _has,
  17. String suffixSeparator = _comma,
  18. String searchBoxHintText = _searchHere,
  19. IconData prefixSearchBoxIcon = _icSearch,
  20. Color? dialogBackgroundColor,
  21. Color itemBackgroundColor = Colors.transparent,
  22. Color selectedItemBackgroundColor = Colors.black12,
  23. String negativeButtonText = _cancel,
  24. String positiveButtonText = _ok,
  25. Color negativeButtonTextColor = Colors.red,
  26. Color positiveButtonTextColor = Colors.black,
  27. bool isAllSelection = false,
  28. Color checkBoxActiveColor = Colors.black,
  29. bool isAddItem = false,
  30. bool dismissWhenTapAddItem = true,
  31. dynamic onTapAddItem(
    1. String searchValue
    )?,
  32. Widget? addItemWidget,
  33. Widget? noDataWidget,
})

constructor for single multi dropdown

Implementation

const Dropdown.multiSelection(
    {super.key,
    required this.list,
    required this.onMultipleItemListener,
    this.selectedIds,
    this.title = "",
    this.labelText = "",
    this.hintText = "",
    this.enabled = true,
    this.width,
    this.height,
    this.textAlign = TextAlign.start,
    this.fontFamily,
    this.border = const OutlineInputBorder(),
    this.decoration,
    this.searchBox = true,
    this.prefixSeparator = _has,
    this.suffixSeparator = _comma,
    this.searchBoxHintText = _searchHere,
    this.prefixSearchBoxIcon = _icSearch,
    this.dialogBackgroundColor,
    this.itemBackgroundColor = Colors.transparent,
    this.selectedItemBackgroundColor = 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,
    this.noDataWidget})
    : selectedId = null,
      onSingleItemListener = null,
      _isMultiple = true;