GroupController class Null safety

GroupController to manage simple grouped checkbox/chips/switch isMultipleSelection : (bool) enable multiple selection in grouped checkbox (default:false). initSelectedItem : (List) A Initialize list of values that will be selected in group.

Constructors

GroupController({dynamic initSelectedItem = const [], bool isMultipleSelection = false})

Properties

hashCode int
The hash code for this object.
read-onlyinherited
initSelectedItem ↔ dynamic
read / write
isMultipleSelection bool
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
selectedItem → dynamic
read-only

Methods

deselectAll() → void
deselect all items in group
deselectValues<k>(List<k> values) → void
deselect some/one item(s) in group values : (dynamic) value(s) of item(s) that should deselected
disableAll() → void
disable all items in groupedCheckBox
disabledItemsByTitles(List<String> items) → void
disabled the items by there titles in groupedCheckBox
disabledItemsByValues(List itemsValues) → void
disabled the items by there values in groupedCheckBox
enableAll() → void
enable all items in groupedCheckBox
enabledItemsByTitles(List<String> items) → void
enable items by there Titles in groupedCheckBox
enabledItemsByValues(List itemsValues) → void
enable items by there values that was disabled in groupedCheckBox
init(StateGroup<dynamic, StatefulWidget> state) → void
listen(void listener(dynamic)) → void
add listener : to get data changed directly
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
select<k>(k value) → void
select one item in group ( singeSelection/multiple selection) value : (dynamic) value of item that should selected
selectAll() → void
select all items in group
selectItems<k>(List<k> values) → void
select some/one item(s) in group values : (dynamic) value(s) of item(s) that should selected
toString() String
A string representation of this object.
inherited

Operators

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