CustomSingleSelect<T> constructor

CustomSingleSelect<T>({
  1. Key? key,
  2. required List<T> items,
  3. required String title,
  4. required void onSelect(
    1. dynamic value
    ),
  5. double? width,
  6. InputDecoration? decoration,
  7. T? initialValue,
  8. Color selectedItemColor = Colors.redAccent,
  9. String? cancelText,
  10. Color? cancelBackgroundColor,
  11. TextStyle? cancelTextStyle,
  12. TextStyle? titleTextStyle,
  13. Color? itemBackgroundColor,
  14. Color? titleBackgroundColor,
  15. Color? separatorColor,
  16. double? separatorHeight,
  17. TextStyle? itemTextStyle,
  18. bool? isBarrierDismissible,
  19. 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);