CustomSingleSearchSelectView<T> constructor

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