CheckedComboBox<T> constructor

const CheckedComboBox<T>({
  1. Key? key,
  2. required Set<T> options,
  3. required Widget itemBuilder(
    1. T item
    ),
  4. required Set<T> selectedItems,
  5. void onSelected(
    1. T item,
    2. bool selected
    )?,
  6. String? label,
  7. bool enabled = true,
  8. Widget selectionBuilder()?,
  9. void onClose()?,
  10. Widget renderCheckBox(
    1. bool isChecked,
    2. void onCheck(
      1. bool value
      )
    )?,
  11. VitComboBoxStyle? style,
})

Creates an instance of the checked combo box class.

Implementation

const CheckedComboBox({
  super.key,
  required this.options,
  required this.itemBuilder,
  required this.selectedItems,
  this.onSelected,
  this.label,
  this.enabled = true,
  this.selectionBuilder,
  this.onClose,
  this.renderCheckBox,
  this.style,
});