AnimatedDropdownSearch.multiple constructor
const
AnimatedDropdownSearch.multiple({
- Key? key,
- required List<
String> data, - required dynamic onSelectedMultiple()?,
- String? hint,
- dynamic onSelected(
- String val
- TextStyle? hintStyle,
- TextStyle? optionTextStyle,
- Color? selectedHighlightColor,
- bool? enableSearch,
- double? maxHeightForOptions,
- Color? scrollPercentageColorIndicator,
- InputBorder? border,
- int? minCharactersToHighlight,
- bool? shouldHighlightMatchedText,
- Color? matchedTextHighlightColor,
- bool? enableAdaptivePositioning,
- bool shouldAnimate = true,
- TextEditingController? searchController,
- FocusNode? searchFocusNode,
- double? width,
- Color? fillColor,
- bool filled = true,
- Alignment optionsAlignment = Alignment.topCenter,
- bool showSelectedOptions = true,
- Color? overlayBackgroundColor,
- Color? cursorColor,
- double? cursorHeight,
- double? cursorWidth,
- Color? highlghtedTextColor,
- Color optionTileColor = Colors.white,
Implementation
const AnimatedDropdownSearch.multiple({
super.key,
required this.data,
required this.onSelectedMultiple,
this.hint,
this.onSelected,
this.hintStyle,
this.optionTextStyle,
this.selectedHighlightColor,
this.enableSearch,
this.maxHeightForOptions,
this.scrollPercentageColorIndicator,
this.border,
this.minCharactersToHighlight,
this.shouldHighlightMatchedText,
this.matchedTextHighlightColor,
this.enableAdaptivePositioning,
this.shouldAnimate = true,
this.searchController,
this.searchFocusNode,
this.width,
this.fillColor,
this.filled = true,
this.optionsAlignment = Alignment.topCenter,
this.showSelectedOptions = true,
this.overlayBackgroundColor,
this.cursorColor,
this.cursorHeight,
this.cursorWidth,
this.highlghtedTextColor,
this.optionTileColor = Colors.white,
}) : assert(onSelected == null,
'onSelected is only allowed in the main selection constructor.'),
canSelectMultiple = true;