UFUSingleSelectView constructor

const UFUSingleSelectView({
  1. required List<UFUSingleSelectModel> list,
  2. required List<UFUSingleSelectModel> mainList,
  3. String? selectedItemId,
  4. AutoScrollController? scrollController,
  5. ValueChanged<String>? onSelect,
  6. String? title,
  7. ValueChanged<String>? onSearch,
  8. bool? isVisible,
  9. TextEditingController? searchInputCtrl,
  10. String? inputHintText,
  11. bool isFilterSheet = false,
  12. bool canShowIconButton = false,
  13. Color? iconButtonBackgroundColor,
  14. double? iconButtonBorderRadius,
  15. VoidCallback? onIconButtonTap,
  16. IconData? iconButtonIcon,
  17. double? iconButtonIconSize,
  18. Color? iconButtonIconColor,
  19. Widget? iconButtonIconWidget,
  20. String? suffixButtonText,
  21. String? prefixButtonText,
  22. VoidCallback? onTapSuffixBtn,
  23. VoidCallback? onTapPrefixBtn,
  24. UFUSingleSelectType type = UFUSingleSelectType.local,
  25. bool isLoading = false,
  26. bool isLoadMore = false,
  27. Widget? listLoader,
  28. bool canShowLoadMore = false,
  29. bool? canShowSearchBar,
  30. bool showIncludeInactiveButton = false,
  31. bool includeInactive = false,
  32. VoidCallback? onTapIncludeInactiveButton,
  33. Key? key,
})

Implementation

const UFUSingleSelectView({
  required this.list,
  required this.mainList,
  this.selectedItemId,
  this.scrollController,
  this.onSelect,
  this.title,
  this.onSearch,
  this.isVisible,
  this.searchInputCtrl,
  this.inputHintText,
  this.isFilterSheet = false,
  this.canShowIconButton = false,
  this.iconButtonBackgroundColor,
  this.iconButtonBorderRadius,
  this.onIconButtonTap,
  this.iconButtonIcon,
  this.iconButtonIconSize,
  this.iconButtonIconColor,
  this.iconButtonIconWidget,
  this.suffixButtonText,
  this.prefixButtonText,
  this.onTapSuffixBtn,
  this.onTapPrefixBtn,
  this.type = UFUSingleSelectType.local,
  this.isLoading = false,
  this.isLoadMore = false,
  this.listLoader,
  this.canShowLoadMore = false,
  this.canShowSearchBar,
  this.showIncludeInactiveButton = false,
  this.includeInactive = false,
  this.onTapIncludeInactiveButton,
  super.key,
});