CustomSingleSearchSelectView<T> constructor
CustomSingleSearchSelectView<T> ({
- Key? key,
- required List<
T> items, - required String title,
- required FormFieldState<
T> ? state, - double? width,
- double? height,
- required void onSelect(
- dynamic value
- InputDecoration? decoration,
- InputDecoration? searchDecoration,
- T? initialValue,
- 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 = true,
- TextStyle? selectedItemTextStyle,
Implementation
CustomSingleSearchSelectView(
{super.key,
required this.items,
required this.title,
required this.state,
this.width,
this.height,
required this.onSelect,
this.decoration,
this.searchDecoration,
this.initialValue,
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 = true,
this.selectedItemTextStyle});