AnimatedDropdownSearch.multiple constructor

const AnimatedDropdownSearch.multiple({
  1. Key? key,
  2. required List<String> data,
  3. required dynamic onSelectedMultiple(
    1. List<String> values
    )?,
  4. String? hint,
  5. dynamic onSelected(
    1. String val
    )?,
  6. TextStyle? hintStyle,
  7. TextStyle? optionTextStyle,
  8. Color? selectedHighlightColor,
  9. bool? enableSearch,
  10. double? maxHeightForOptions,
  11. Color? scrollPercentageColorIndicator,
  12. InputBorder? border,
  13. int? minCharactersToHighlight,
  14. bool? shouldHighlightMatchedText,
  15. Color? matchedTextHighlightColor,
  16. bool? enableAdaptivePositioning,
  17. bool shouldAnimate = true,
  18. TextEditingController? searchController,
  19. FocusNode? searchFocusNode,
  20. double? width,
  21. Color? fillColor,
  22. bool filled = true,
  23. Alignment optionsAlignment = Alignment.topCenter,
  24. bool showSelectedOptions = true,
  25. Color? overlayBackgroundColor,
  26. Color? cursorColor,
  27. double? cursorHeight,
  28. double? cursorWidth,
  29. Color? highlghtedTextColor,
  30. 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;