ChipMultiSelectField<T> constructor

const ChipMultiSelectField<T>({
  1. Key? key,
  2. required String label,
  3. List<Choice<T>> data()?,
  4. void onSelect(
    1. List<Choice<T>> choiceList,
    2. bool isFromDefaultData
    )?,
  5. void onChanged(
    1. List<Choice<T>> selectedItems
    )?,
  6. List<Choice<T>>? defaultData,
  7. Widget? menuContent,
  8. Widget? menuHeader,
  9. Widget? menuFooter,
  10. ChipStyle? chipStyle,
  11. ChipMenuStyle? menuStyle,
  12. VoidCallback? onMenuOpened,
  13. VoidCallback? onMenuClosed,
  14. bool enabled = true,
  15. Widget? leading,
  16. Widget? trailing,
  17. bool showDropdownIcon = true,
  18. bool singleSelection = false,
  19. bool selectAllOption = false,
  20. MenuController? controller,
  21. TextStyle? titleMenuStyle,
  22. TextStyle? itemMenuStyle,
  23. EdgeInsetsGeometry? titleMenuPadding,
  24. ChipSize? chipSize,
})

Implementation

const ChipMultiSelectField({
  super.key,
  required this.label,
  this.data,
  this.onSelect,
  this.onChanged,
  this.defaultData,
  this.menuContent,
  this.menuHeader,
  this.menuFooter,
  this.chipStyle,
  this.menuStyle,
  this.onMenuOpened,
  this.onMenuClosed,
  this.enabled = true,
  this.leading,
  this.trailing,
  this.showDropdownIcon = true,
  this.singleSelection = false,
  this.selectAllOption = false,
  this.controller,
  this.titleMenuStyle,
  this.itemMenuStyle,
  this.titleMenuPadding,
  this.chipSize,
}) : super.internal();