ParentChildCheckbox class
Main widget of Parent Child Checkbox. Parent Child Checkbox is a type of checkbox where we can establish hierarchy in Checkboxes.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- ParentChildCheckbox
Constructors
-
ParentChildCheckbox({required Text? parent, required List<
Text> ? children, Color? parentCheckboxColor, Color? childrenCheckboxColor, double? parentCheckboxScale, double? childrenCheckboxScale, double? gap, void onCheckedChild(int index)?, void onCheckedParent()?}) - Default constructor of ParentChildCheckbox
Properties
-
children
→ List<
Text> ? -
List
final
- childrenCheckboxColor → Color?
-
Color of Parent CheckBox
final
- childrenCheckboxScale → double?
-
Scale of the Children CheckBox
final
- gap → double?
-
Gap between the Parent and Children CheckBox
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onCheckedChild → (void Function(int index)?)
-
Function that will be executed if a child will be selected
final
- onCheckedParent → (void Function()?)
-
Function that will be executed if the parent will be selected
final
- parent → Text?
-
Text Widget to specify the Parent checkbox
final
- parentCheckboxColor → Color?
-
Color of Parent CheckBox
final
- parentCheckboxScale → double?
-
Scale of the Parent CheckBox
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _ParentChildCheckboxState -
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}) → 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
Static Properties
- isParentSelected → dynamic
-
Getter to get whether particular parent is selected or not.
no setter
- selectedChildrens → dynamic
-
Getter to get which childrens are selected for a particular parent.
no setter