UFUMultiSelect constructor

const UFUMultiSelect({
  1. required List<UFUMultiSelectModel> mainList,
  2. String? inputHintText,
  3. Widget? totalAmount,
  4. void updateTotalAmount({
    1. int? index,
    2. bool? isSelect,
    3. bool? isSelectAll,
    })?,
  5. bool isFilterSheet = false,
  6. String title = 'Select option',
  7. ValueChanged<List<UFUMultiSelectModel>>? onDone,
  8. Widget? doneIcon,
  9. bool disableButtons = false,
  10. bool canDisableDoneButton = false,
  11. Widget? headerPrefixChild,
  12. UFUMultiSelectType type = UFUMultiSelectType.local,
  13. bool isLoading = false,
  14. VoidCallback? onLoadMore,
  15. bool isLoadMore = false,
  16. dynamic onSearch(
    1. String keyword
    )?,
  17. int? totalNetworkListCount,
  18. Widget? listLoader,
  19. List<UFUMultiSelectModel>? initialSelectionsForNetworkList,
  20. bool canShowLoadMore = false,
  21. String? helperText,
  22. List<UFUMultiSelectModel>? subList,
  23. bool? canShowSubList,
  24. ValueChanged<bool>? showSubList,
  25. String? subTitleHeader,
  26. int? maxSelection,
  27. VoidCallback? onMaxSelectionReached,
  28. bool showIncludeInactiveButton = false,
  29. dynamic onTapItem(
    1. List<UFUMultiSelectModel>,
    2. int
    )?,
  30. bool hideSelectAll = false,
  31. Key? key,
})

Implementation

const UFUMultiSelect({
  required this.mainList,
  this.inputHintText,
  this.totalAmount,
  this.updateTotalAmount,
  this.isFilterSheet = false,
  this.title = 'Select option',
  this.onDone,
  this.doneIcon,
  this.disableButtons = false,
  this.canDisableDoneButton = false,
  this.headerPrefixChild,
  this.type = UFUMultiSelectType.local,
  this.isLoading = false,
  this.onLoadMore,
  this.isLoadMore = false,
  this.onSearch,
  this.totalNetworkListCount,
  this.listLoader,
  this.initialSelectionsForNetworkList,
  this.canShowLoadMore = false,
  this.helperText,
  this.subList,
  this.canShowSubList,
  this.showSubList,
  this.subTitleHeader,
  this.maxSelection,
  this.onMaxSelectionReached,
  this.showIncludeInactiveButton = false,
  this.onTapItem,
  this.hideSelectAll = false,
  super.key,
});