MultiSearchField constructor
const
MultiSearchField({
- required String labelText,
- required List<
String> dropDownList, - required void removeEvent(
- String value
- required Widget fieldSuffixIcon({
- required VoidCallback onCloseIconTap,
- required VoidCallback onlyCloseMenu,
- required List<
String> ? values, - required void onSelected(
- String text
- double selectListSpacing = 8,
- double selectListItemSpacing = 8,
- double selectListItemRunSpacing = 8,
- EdgeInsets listPadding = const EdgeInsets.symmetric(vertical: 16),
- Clip listClipBehavior = Clip.hardEdge,
- Key? textFieldKey,
- Key? key,
- bool? showErrorText,
- String? errorText,
- int? errorMaxLines,
- String? description,
- String? allElements,
- bool? isRequired,
- TextStyle? itemTextStyle,
- double? itemsSpace,
- ButtonStyle? itemStyle,
- InputDecoration? fieldDecoration,
- int? selectedItemMaxLines,
- ButtonStyle? selectedItemStyle,
- TextStyle? selectedItemTextStyle,
- Clip? selectedItemClipBehavior,
- Widget? selectedItemIcon,
- double? selectedItemSpacing,
- TextAlign? selectedItemTextAlign,
- TextOverflow? selectedItemTextOverflow,
- Widget customTextField({
- required TextEditingController controller,
- required FocusNode focusNode,
- required GlobalKey<
State< key,StatefulWidget> > - required void onChanged()?,
- required void onSubmitted()?,
- required Widget? suffixIcon,
- required Key? textFieldKey,
- List<
TextInputFormatter> ? fieldInputFormatters, - TextEditingController? controller,
- FocusNode? focusNode,
- TextStyle? labelTextStyle,
- Widget listButtonItem({})?,
- double? listCacheExtent,
- bool listAddSemanticIndexes = true,
- ScrollController? listController,
- String? listRestorationId,
- int? listSemanticChildCount,
- DragStartBehavior listDragStartBehavior = DragStartBehavior.start,
- ScrollPhysics? listPhysics,
- bool? listPrimary,
- Key? fieldIconKey,
- Key? listKey,
- Key? listItemKey,
- Key? selectedListKey,
- Key? selectedListItemKey,
- Widget selectedWidget(
- 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);