CustomMultiDropdown constructor

const CustomMultiDropdown({
  1. Key? key,
  2. Widget? label,
  3. String? labelText,
  4. TextStyle? labelStyle,
  5. String? nameKey,
  6. String? nameMapKey,
  7. List<Map<String, dynamic>>? items,
  8. String? hintText,
  9. List<Map<String, dynamic>>? selectedValues,
  10. TextStyle? hintStyle,
  11. TextStyle? selectedStyle,
  12. String? errorText,
  13. TextStyle? errorStyle,
  14. TextStyle? listItemStyle,
  15. BorderSide? errorBorderSide,
  16. BorderRadius? borderRadius,
  17. BorderSide? borderSide,
  18. Widget? fieldSuffixIcon,
  19. Widget? fieldPrefixIcon,
  20. dynamic onChanged(
    1. List<Map<String, dynamic>>
    )?,
  21. EdgeInsets? contentPadding,
  22. void onRemoveClicked()?,
  23. Widget? basicWidget,
  24. double? customOverRelayWidth,
  25. bool? excludeSelected = true,
  26. Color? fillColor = Colors.white,
  27. int? maxSelectedItems = 5,
  28. Widget chipBuilder(
    1. Map<String, dynamic>
    )?,
  29. Color? selectedItemChipBackgroundColor,
  30. required String primaryIdKey,
  31. Color selectColor = Colors.black,
  32. String? subNameKey,
  33. VoidCallback? onMaxItemsSelected,
  34. CustomMultiDropdownController? controller,
  35. dynamic onComplete(
    1. List<Map<String, dynamic>>
    )?,
  36. String? searchHintText,
})

Implementation

const CustomMultiDropdown({
  super.key,
  this.label,
  this.labelText,
  this.labelStyle,
  this.nameKey,
  this.nameMapKey,
  this.items,
  this.hintText,
  this.selectedValues,
  this.hintStyle,
  this.selectedStyle,
  this.errorText,
  this.errorStyle,
  this.listItemStyle,
  this.errorBorderSide,
  this.borderRadius,
  this.borderSide,
  this.fieldSuffixIcon,
  this.fieldPrefixIcon,
  this.onChanged,
  this.contentPadding,
  this.onRemoveClicked,
  this.basicWidget,
  this.customOverRelayWidth,
  this.excludeSelected = true,
  this.fillColor = Colors.white,
  this.maxSelectedItems = 5,
  this.chipBuilder,
  this.selectedItemChipBackgroundColor,
  required this.primaryIdKey,
  this.selectColor = Colors.black,
  this.subNameKey,
  this.onMaxItemsSelected,
  this.controller,
  this.onComplete,
  this.searchHintText,
}) : searchType = null,
     canCloseOutsideBounds = true;