UFUSingleSelectView constructor
const
UFUSingleSelectView({
- required List<
UFUSingleSelectModel> list, - required List<
UFUSingleSelectModel> mainList, - String? selectedItemId,
- AutoScrollController? scrollController,
- ValueChanged<
String> ? onSelect, - String? title,
- ValueChanged<
String> ? onSearch, - bool? isVisible,
- TextEditingController? searchInputCtrl,
- String? inputHintText,
- bool isFilterSheet = false,
- bool canShowIconButton = false,
- Color? iconButtonBackgroundColor,
- double? iconButtonBorderRadius,
- VoidCallback? onIconButtonTap,
- IconData? iconButtonIcon,
- double? iconButtonIconSize,
- Color? iconButtonIconColor,
- Widget? iconButtonIconWidget,
- String? suffixButtonText,
- String? prefixButtonText,
- VoidCallback? onTapSuffixBtn,
- VoidCallback? onTapPrefixBtn,
- UFUSingleSelectType type = UFUSingleSelectType.local,
- bool isLoading = false,
- bool isLoadMore = false,
- Widget? listLoader,
- bool canShowLoadMore = false,
- bool? canShowSearchBar,
- bool showIncludeInactiveButton = false,
- bool includeInactive = false,
- VoidCallback? onTapIncludeInactiveButton,
- 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,
});