CustomSingleSelect<T> constructor
CustomSingleSelect<T> ({
- Key? key,
- required List<
T> items, - required String title,
- required void onSelect(
- dynamic value
- double? width,
- InputDecoration? decoration,
- T? initialValue,
- Color selectedItemColor = Colors.redAccent,
- String? cancelText,
- Color? cancelBackgroundColor,
- TextStyle? cancelTextStyle,
- TextStyle? titleTextStyle,
- Color? itemBackgroundColor,
- Color? titleBackgroundColor,
- Color? separatorColor,
- double? separatorHeight,
- TextStyle? itemTextStyle,
- bool? isBarrierDismissible,
- TextStyle? selectedItemTextStyle,
Implementation
CustomSingleSelect({
Key? key,
required this.items,
required this.title,
required this.onSelect,
this.width,
this.decoration,
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.isBarrierDismissible,
this.selectedItemTextStyle,
}) : super(key: key);