UFUSingleSelect constructor
const
UFUSingleSelect({
- required List<
UFUSingleSelectModel> mainList, - String? selectedItemId,
- ValueChanged<
String> ? onItemSelect, - bool isFilterSheet = false,
- String? inputHintText,
- String title = 'select option',
- 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,
- VoidCallback? onLoadMore,
- bool isLoadMore = false,
- Widget? listLoader,
- bool canShowLoadMore = false,
- dynamic onSearch(
- String keyword
- bool? canShowSearchBar,
- bool showIncludeInactiveButton = false,
- Key? key,
Implementation
const UFUSingleSelect({
required this.mainList,
this.selectedItemId,
this.onItemSelect,
this.isFilterSheet = false,
this.inputHintText,
this.title = 'select option',
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.onLoadMore,
this.isLoadMore = false,
this.listLoader,
this.canShowLoadMore = false,
this.onSearch,
this.canShowSearchBar,
this.showIncludeInactiveButton = false,
super.key
});