XDropSearch<T> constructor
XDropSearch<T> ({
- Key? key,
- required T? itemSelected,
- required List<
T> liItems, - required String? label,
- required ValueChanged<
T> ? onChanged_ItemOfDD, - Color? label_Color,
- Color? background_Color = Colors.transparent,
- DropdownSearchPopupItemBuilder<
T> ? itemWidgetBuilder, - Widget? clearBTN,
- String itemAsString(
- T
- Future<
List< onFind()?,T> > - Color? focusColorOfDD,
- EdgeInsetsGeometry? contentPadding,
- Widget dropdownBuilder(
- BuildContext,
- T?
- TextStyle? item_TextStyle(
- T
- Alignment? item_TextAlignment,
- TextStyle? label_Style,
- AutovalidateMode? autoValidateMode = AutovalidateMode.disabled,
- bool? clearBTN_Active,
- double? clearBTN_IconSize,
- EdgeInsetsGeometry? clearBTN_Padding,
- Color? clearBTN_IconColor,
- BoxConstraints? clearBTN_Constraints,
- Color? al_BackGroundColor,
- String? al_Title,
- Color? al_Title_Color,
- TextStyle? al_Title_Style,
- bool? al_SearchBox_Active,
- Color? al_SearchBoxBorderANDtitle_Color,
- Widget? dropBTN,
- EdgeInsetsGeometry? dropBTN_Padding,
- Color? dropBTN_IconColor,
- double? dropBTN_IconSize = 18,
- BoxConstraints? dropBTN_Constraints,
- Color? labelANDborder_Color,
- FloatingLabelBehavior? label_Behavior,
- String? propToShowInItems,
- String? dropDownMode,
- String? validator(
- T?
- bool filterFn(
- T,
- String
- Color? item_LabelColor,
- TextStyle? item_LabelStyle,
Implementation
XDropSearch({
Key? key,
required this.itemSelected,
required this.liItems,
required this.label,
required this.onChanged_ItemOfDD,
this.label_Color,
this.background_Color = Colors.transparent,
this.itemWidgetBuilder,
this.clearBTN,
this.itemAsString,
this.onFind,
this.focusColorOfDD,
this.menu_SearchBox_Active,
this.contentPadding,
this.dropdownBuilder,
this.item_TextStyle,
this.item_TextAlignment,
this.label_Style,
this.autoValidateMode = AutovalidateMode.disabled,
this.clearBTN_Active,
this.clearBTN_IconSize,
this.clearBTN_Padding,
this.clearBTN_IconColor,
this.clearBTN_Constraints,
this.menu_BackGroundColor,
this.menu_Title,
this.menu_Title_Color,
this.menu_Title_Style,
this.menu_SearchBoxBorderANDtitle_Color,
this.al_BackGroundColor,
this.al_Title,
this.al_Title_Color,
this.al_Title_Style,
this.al_SearchBox_Active,
this.al_SearchBoxBorderANDtitle_Color,
this.dropBTN,
this.dropBTN_Padding,
this.dropBTN_IconColor,
this.dropBTN_IconSize = 18,
this.dropBTN_Constraints,
this.labelANDborder_Color,
this.label_Behavior,
this.propToShowInItems,
this.dropDownMode,
this.validator,
this.filterFn,
this.item_LabelColor,
this.item_LabelStyle,
}) : super(key: key);