FilterListWidget<T> constructor
const
FilterListWidget<T> ({
- Key? key,
- double? height,
- double? width,
- List<
T> ? listData, - required ValidateSelectedItem<
T> validateSelectedItem, - required LabelDelegate<
T> choiceChipLabel, - required ItemSearchDelegate<
T> onItemSearch, - List<
T> ? selectedListData, - double borderRadius = 20,
- OnApplyButtonClick<
T> ? onApplyButtonClick, - ChoiceChipBuilder? choiceChipBuilder,
- TextStyle? selectedChipTextStyle,
- TextStyle? unselectedChipTextStyle,
- TextStyle? controlButtonTextStyle,
- TextStyle? applyButtonTextStyle,
- TextStyle? headerTextStyle,
- TextStyle? searchFieldTextStyle,
- String headlineText = "Select",
- String searchFieldHintText = "Search here",
- bool hideSelectedTextCount = false,
- bool hideSearchField = false,
- bool hideCloseIcon = true,
- bool? hideHeader = false,
- bool? hideHeaderText = false,
- Color? closeIconColor = Colors.black,
- Color? headerTextColor = Colors.black,
- Color? applyButonTextBackgroundColor = Colors.blue,
- Color? backgroundColor = Colors.white,
- Color? searchFieldBackgroundColor = const Color(0xfff5f5f5),
- Color? selectedTextBackgroundColor = Colors.blue,
- Color? unselectedTextbackGroundColor = const Color(0xfff8f8f8),
- 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);