FilterListWidget<T> constructor

const FilterListWidget<T>({
  1. Key? key,
  2. double? height,
  3. double? width,
  4. List<T>? listData,
  5. required ValidateSelectedItem<T> validateSelectedItem,
  6. required LabelDelegate<T> choiceChipLabel,
  7. required ItemSearchDelegate<T> onItemSearch,
  8. List<T>? selectedListData,
  9. double borderRadius = 20,
  10. OnApplyButtonClick<T>? onApplyButtonClick,
  11. ChoiceChipBuilder? choiceChipBuilder,
  12. TextStyle? selectedChipTextStyle,
  13. TextStyle? unselectedChipTextStyle,
  14. TextStyle? controlButtonTextStyle,
  15. TextStyle? applyButtonTextStyle,
  16. TextStyle? headerTextStyle,
  17. TextStyle? searchFieldTextStyle,
  18. String headlineText = "Select",
  19. String searchFieldHintText = "Search here",
  20. bool hideSelectedTextCount = false,
  21. bool hideSearchField = false,
  22. bool hideCloseIcon = true,
  23. bool? hideHeader = false,
  24. bool? hideHeaderText = false,
  25. Color? closeIconColor = Colors.black,
  26. Color? headerTextColor = Colors.black,
  27. Color? applyButonTextBackgroundColor = Colors.blue,
  28. Color? backgroundColor = Colors.white,
  29. Color? searchFieldBackgroundColor = const Color(0xfff5f5f5),
  30. Color? selectedTextBackgroundColor = Colors.blue,
  31. Color? unselectedTextbackGroundColor = const Color(0xfff8f8f8),
  32. bool? enableOnlySingleSelection = false,
})

Implementation

const FilterListWidget({
  Key? key,
  this.height,
  this.width,
  this.listData,
  required this.validateSelectedItem,
  required this.choiceChipLabel,
  required this.onItemSearch,
  this.selectedListData,
  this.borderRadius = 20,
  this.onApplyButtonClick,
  this.choiceChipBuilder,
  this.selectedChipTextStyle,
  this.unselectedChipTextStyle,
  this.controlButtonTextStyle,
  this.applyButtonTextStyle,
  this.headerTextStyle,
  this.searchFieldTextStyle,
  this.headlineText = "Select",
  this.searchFieldHintText = "Search here",
  this.hideSelectedTextCount = false,
  this.hideSearchField = false,
  this.hideCloseIcon = true,
  this.hideHeader = false,
  this.hideHeaderText = false,
  this.closeIconColor = Colors.black,
  this.headerTextColor = Colors.black,
  this.applyButonTextBackgroundColor = Colors.blue,
  this.backgroundColor = Colors.white,
  this.searchFieldBackgroundColor = const Color(0xfff5f5f5),
  this.selectedTextBackgroundColor = Colors.blue,
  this.unselectedTextbackGroundColor = const Color(0xfff8f8f8),
  this.enableOnlySingleSelection = false,
}) : super(key: key);