MultiSearchField constructor

const MultiSearchField({
  1. required String labelText,
  2. required List<String> dropDownList,
  3. required void removeEvent(
    1. String value
    )?,
  4. required Widget fieldSuffixIcon({
    1. required bool menuOpened,
    2. required VoidCallback onCloseIconTap,
    3. required VoidCallback onlyCloseMenu,
    })?,
  5. required List<String>? values,
  6. required void onSelected(
    1. String text
    )?,
  7. double selectListSpacing = 8,
  8. double selectListItemSpacing = 8,
  9. double selectListItemRunSpacing = 8,
  10. double menuMaxHeight = 400,
  11. EdgeInsets menuMargin = const EdgeInsets.only(top: 4, bottom: 8),
  12. EdgeInsets listPadding = const EdgeInsets.symmetric(vertical: 16),
  13. Clip listClipBehavior = Clip.hardEdge,
  14. Key? textFieldKey,
  15. Key? key,
  16. bool? showErrorText,
  17. String? errorText,
  18. int? errorMaxLines,
  19. String? description,
  20. String? allElements,
  21. bool? isRequired,
  22. TextStyle? itemTextStyle,
  23. BoxDecoration? menuDecoration,
  24. double? itemsSpace,
  25. ButtonStyle? itemStyle,
  26. InputDecoration? fieldDecoration,
  27. int? selectedItemMaxLines,
  28. ButtonStyle? selectedItemStyle,
  29. TextStyle? selectedItemTextStyle,
  30. Clip? selectedItemClipBehavior,
  31. Widget? selectedItemIcon,
  32. double? selectedItemSpacing,
  33. TextAlign? selectedItemTextAlign,
  34. TextOverflow? selectedItemTextOverflow,
  35. Widget customTextField({
    1. required TextEditingController controller,
    2. required FocusNode focusNode,
    3. required GlobalKey<State<StatefulWidget>> key,
    4. required void onChanged(
      1. String
      )?,
    5. required void onSubmitted(
      1. String
      )?,
    6. required Widget? suffixIcon,
    7. required Key? textFieldKey,
    })?,
  36. List<TextInputFormatter>? fieldInputFormatters,
  37. TextEditingController? controller,
  38. FocusNode? focusNode,
  39. TextStyle? labelTextStyle,
  40. Widget listButtonItem({
    1. required int index,
    2. required bool isEnabled,
    3. required Key? key,
    4. required void onPressed(),
    5. required String value,
    })?,
  41. double? listCacheExtent,
  42. bool listAddSemanticIndexes = true,
  43. ScrollController? listController,
  44. String? listRestorationId,
  45. int? listSemanticChildCount,
  46. DragStartBehavior listDragStartBehavior = DragStartBehavior.start,
  47. ScrollPhysics? listPhysics,
  48. bool? listPrimary,
  49. Widget menuList({
    1. required Widget item(
      1. int index
      ),
    2. required int length,
    })?,
  50. Key? fieldIconKey,
  51. Key? listKey,
  52. Key? listItemKey,
  53. Key? selectedListKey,
  54. Key? selectedListItemKey,
  55. Widget selectedWidget(
    1. String value
    )?,
})

Implementation

const MultiSearchField({
  required this.labelText,
  required this.dropDownList,
  required this.removeEvent,
  required this.fieldSuffixIcon,
  required this.values,
  required this.onSelected,
  this.selectListSpacing = 8,
  this.selectListItemSpacing = 8,
  this.selectListItemRunSpacing = 8,
  this.menuMaxHeight = 400,
  this.menuMargin = const EdgeInsets.only(top: 4, bottom: 8),
  this.listPadding = const EdgeInsets.symmetric(vertical: 16),
  this.listClipBehavior = Clip.hardEdge,
  this.textFieldKey,
  Key? key,
  this.showErrorText,
  this.errorText,
  this.errorMaxLines,
  this.description,
  this.allElements,
  this.isRequired,
  this.itemTextStyle,
  this.menuDecoration,
  this.itemsSpace,
  this.itemStyle,
  this.fieldDecoration,
  this.selectedItemMaxLines,
  this.selectedItemStyle,
  this.selectedItemTextStyle,
  this.selectedItemClipBehavior,
  this.selectedItemIcon,
  this.selectedItemSpacing,
  this.selectedItemTextAlign,
  this.selectedItemTextOverflow,
  this.customTextField,
  this.fieldInputFormatters,
  this.controller,
  this.focusNode,
  this.labelTextStyle,
  this.listButtonItem,
  this.listCacheExtent,
  this.listAddSemanticIndexes = true,
  this.listController,
  this.listRestorationId,
  this.listSemanticChildCount,
  this.listDragStartBehavior = DragStartBehavior.start,
  this.listPhysics,
  this.listPrimary,
  this.menuList,
  this.fieldIconKey,
  this.listKey,
  this.listItemKey,
  this.selectedListKey,
  this.selectedListItemKey,
  this.selectedWidget,
}) : super(key: key);