WFDropdown.multiSelection constructor Null safety

const WFDropdown.multiSelection(
  1. {Key? key,
  2. required List<WFDropdownItem> list,
  3. required dynamic onMultipleItemListener(
    1. List<WFDropdownItem> 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. bool searchBox = true,
  12. String prefixSeparator = _has,
  13. String suffixSeparator = _comma,
  14. String searchBoxHintText = _searchHere,
  15. IconData prefixSearchBoxIcon = _icSearch,
  16. Color selectedBackgroundColor = Colors.black12,
  17. String negativeButtonText = _cancel,
  18. String positiveButtonText = _ok,
  19. Color negativeButtonTextColor = Colors.red,
  20. Color positiveButtonTextColor = Colors.black,
  21. bool allSelection = false,
  22. 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);