CustomMultiDropdown constructor
const
CustomMultiDropdown({
- Key? key,
- Widget? label,
- String? labelText,
- TextStyle? labelStyle,
- String? nameKey,
- String? nameMapKey,
- List<
Map< ? items,String, dynamic> > - String? hintText,
- List<
Map< ? selectedValues,String, dynamic> > - TextStyle? hintStyle,
- TextStyle? selectedStyle,
- String? errorText,
- TextStyle? errorStyle,
- TextStyle? listItemStyle,
- BorderSide? errorBorderSide,
- BorderRadius? borderRadius,
- BorderSide? borderSide,
- Widget? fieldSuffixIcon,
- Widget? fieldPrefixIcon,
- dynamic onChanged()?,
- EdgeInsets? contentPadding,
- void onRemoveClicked()?,
- Widget? basicWidget,
- double? customOverRelayWidth,
- bool? excludeSelected = true,
- Color? fillColor = Colors.white,
- int? maxSelectedItems = 5,
- Widget chipBuilder()?,
- Color? selectedItemChipBackgroundColor,
- required String primaryIdKey,
- Color selectColor = Colors.black,
- String? subNameKey,
- VoidCallback? onMaxItemsSelected,
- CustomMultiDropdownController? controller,
- dynamic onComplete()?,
- 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;