const
WFDropdown.multiSelection(- {Key? key,
- required List<WFDropdownItem> list,
- required dynamic onMultipleItemListener(
- List<WFDropdownItem> selectedItemList
)?,
- List<String>? selectedIds,
- String title = "",
- String labelText = "",
- String hintText = "",
- bool enabled = true,
- TextAlign textAlign = TextAlign.start,
- InputBorder border = const OutlineInputBorder(),
- bool searchBox = true,
- String prefixSeparator = _has,
- String suffixSeparator = _comma,
- String searchBoxHintText = _searchHere,
- IconData prefixSearchBoxIcon = _icSearch,
- Color selectedBackgroundColor = Colors.black12,
- String negativeButtonText = _cancel,
- String positiveButtonText = _ok,
- Color negativeButtonTextColor = Colors.red,
- Color positiveButtonTextColor = Colors.black,
- bool allSelection = false,
- Color checkBoxActiveColor = Colors.black}
)
Implementation
const WFDropdown.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.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.allSelection = false,
this.checkBoxActiveColor = Colors.black})
: selectedId = null,
onSingleItemListener = null,
_isMultiple = true,
super(key: key);