AnimatedDropdownSearch constructor
const
AnimatedDropdownSearch({
- Key? key,
- required List<
String> data, - required dynamic onSelected(
- String val
- String? hint,
- dynamic onSelectedMultiple()?,
- 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,
- Color? fillColor,
- bool filled = true,
- Alignment optionsAlignment = Alignment.topCenter,
- double? width,
- Color? overlayBackgroundColor,
- Color? cursorColor,
- double? cursorHeight,
- double? cursorWidth,
- Color? highlghtedTextColor,
- Color optionTileColor = Colors.white,
Implementation
const AnimatedDropdownSearch({
super.key,
required this.data,
required this.onSelected,
this.hint,
this.onSelectedMultiple,
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.fillColor,
this.filled = true,
this.optionsAlignment = Alignment.topCenter,
this.width,
this.overlayBackgroundColor,
this.cursorColor,
this.cursorHeight,
this.cursorWidth,
this.highlghtedTextColor,
this.optionTileColor = Colors.white,
}) : assert(onSelectedMultiple == null,
'onSelectedMultiple is only allowed in the multiple selection constructor.'),
canSelectMultiple = false,
showSelectedOptions = false;