MultiSelectionFilter class

Multi Selection Filter is a very handy tool to showing multiple items inside a dialog box. Users can select or unselect this items for a specific purpose. This dialog box is also a fully customizable.

Inheritance

Constructors

MultiSelectionFilter({Key? key, required String title, required List<String> textListToShow, required List<bool?> selectedList, required dynamic onCheckboxTap(String, int, bool), required Widget child, required Color accentColor, required Color checkboxTitleBG, required Color checkboxCheckColor, required Color checkboxTitleTextColor, required Color doneButtonBG, required Color doneButtonTextColor, bool showChips = true, Function? onDoneButtonPressed, Color closeIconBG = Colors.black, Color closeIconColor = Colors.white, String doneButtonText = AppConstants.done, String searchHint = AppConstants.searchHint})
const

Properties

accentColor Color
Accent color for dialog box UI
final
checkboxCheckColor Color
Tint color for checkbox check icon
final
checkboxTitleBG Color
Background color for checkbox title
final
checkboxTitleTextColor Color
Text color for checkbox title
final
child Widget
Creates a widget which will show this dialog box upon clicked.
final
closeIconBG Color
Background color for close icon
final
closeIconColor Color
Tint color for close icon
final
doneButtonBG Color
Background color for done button
final
doneButtonText String
Title for done button in dialog
final
doneButtonTextColor Color
Text color for done button
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onCheckboxTap → dynamic Function(String, int, bool)
Get callback when filter applied
final
onDoneButtonPressed Function?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchHint String
Hint for search TextField
final
selectedList List<bool?>
List of bool for whether current item is selected or not
final
showChips bool
Whether to show a chips of selected items
final
textListToShow List<String>
List of String for dialog item titles
final
title String
Dialog box title
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<MultiSelectionFilter>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited