CustomSingleSearchSelect<T>  constructor 
      
      CustomSingleSearchSelect<T> ({ 
    
    
- Key? key,
- required List<T> items,
- required String title,
- required void onSelect(- dynamic value
 
- double? dialogWidth,
- double? dialogHeight,
- InputDecoration? decoration,
- InputDecoration? searchDecoration,
- T? valueSelected,
- Color selectedItemColor = Colors.redAccent,
- String? cancelText,
- Color? cancelBackgroundColor,
- TextStyle? cancelTextStyle,
- TextStyle? titleTextStyle,
- Color? itemBackgroundColor,
- Color? titleBackgroundColor,
- Color? separatorColor,
- double? separatorHeight,
- TextStyle? itemTextStyle,
- TextStyle? searchStyle,
- bool? isBarrierDismissible,
- TextStyle? selectedItemTextStyle,
Implementation
CustomSingleSearchSelect(
    {super.key,
    required this.items,
    required this.title,
    required this.onSelect,
    this.dialogWidth,
    this.dialogHeight,
    this.decoration,
    this.searchDecoration,
    this.valueSelected,
    this.selectedItemColor = Colors.redAccent,
    this.cancelText,
    this.cancelBackgroundColor,
    this.cancelTextStyle,
    this.titleTextStyle,
    this.itemBackgroundColor,
    this.titleBackgroundColor,
    this.separatorColor,
    this.separatorHeight,
    this.itemTextStyle,
    this.searchStyle,
    this.isBarrierDismissible,
    this.selectedItemTextStyle})
    : super(
          initialValue: valueSelected,
          builder: (FormFieldState<T> state) {
            CustomSingleSearchSelectView<T> field =
                CustomSingleSearchSelectView<T>(
              title: title,
              items: items,
              width: dialogWidth,
              height: dialogHeight,
              onSelect: onSelect,
              decoration: decoration,
              searchDecoration: searchDecoration,
              initialValue: valueSelected,
              selectedItemColor: selectedItemColor,
              cancelText: cancelText,
              cancelBackgroundColor: cancelBackgroundColor,
              cancelTextStyle: cancelTextStyle,
              titleTextStyle: titleTextStyle,
              itemBackgroundColor: itemBackgroundColor,
              titleBackgroundColor: titleBackgroundColor,
              separatorColor: separatorColor,
              separatorHeight: separatorHeight,
              itemTextStyle: itemTextStyle,
              searchStyle: searchStyle,
              isBarrierDismissible: isBarrierDismissible!,
              selectedItemTextStyle: selectedItemTextStyle,
              state: state,
            );
            return CustomSingleSearchSelectView<T>._withState(field, state);
          });