GroupButtonController class

GroupButton Controller for working with GroupButton from the outside

Inheritance

Constructors

GroupButtonController({int? selectedIndex, List<int> selectedIndexes = const [], List<int> disabledIndexes = const [], dynamic onDisablePressed(int index)?})

Properties

disabledIndexes Set<int>
Disabled buttons indexes
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
onDisablePressed ↔ (dynamic Function(int index)?)
Callback Function works by clicking on a disabled group element
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedIndex int?
Selected button index in case when you using radio type
no setter
selectedIndexes Set<int>
Selected buttons indexes in case when you using checkbox type
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
disableIndexes(List<int> indexes) → void
Disable buttons by indexes in checkbox and radio type
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
enableIndexes(List<int> indexes) → void
Enable buttons by indexes in checkbox and radio type
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
selectIndex(int i) → void
Select button by index in radio type
selectIndexes(List<int> indexes) → void
Select buttons by indexes in checkbox type
toggleIndexes(List<int> indexes) → void
Toggle buttons by indexes in checkbox type
toString() String
A string representation of this object.
inherited
unselectAll() → void
Unselect all buttons in checkbox type and only one selected button in radio type
unselectIndex(int i) → void
Unselect button by index in checkbox and radio type
unselectIndexes(List<int> indexes) → void
Unselect buttons by indexes in checkbox type

Operators

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