UFUSingleSelect constructor

const UFUSingleSelect({
  1. required List<UFUSingleSelectModel> mainList,
  2. String? selectedItemId,
  3. ValueChanged<String>? onItemSelect,
  4. bool isFilterSheet = false,
  5. String? inputHintText,
  6. String title = 'select option',
  7. bool canShowIconButton = false,
  8. Color? iconButtonBackgroundColor,
  9. double? iconButtonBorderRadius,
  10. VoidCallback? onIconButtonTap,
  11. IconData? iconButtonIcon,
  12. double? iconButtonIconSize,
  13. Color? iconButtonIconColor,
  14. Widget? iconButtonIconWidget,
  15. String? suffixButtonText,
  16. String? prefixButtonText,
  17. VoidCallback? onTapSuffixBtn,
  18. VoidCallback? onTapPrefixBtn,
  19. UFUSingleSelectType type = UFUSingleSelectType.local,
  20. bool isLoading = false,
  21. VoidCallback? onLoadMore,
  22. bool isLoadMore = false,
  23. Widget? listLoader,
  24. bool canShowLoadMore = false,
  25. dynamic onSearch(
    1. String keyword
    )?,
  26. bool? canShowSearchBar,
  27. bool showIncludeInactiveButton = false,
  28. 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
});