GroupedCheckbox<T> class

Inheritance

Constructors

GroupedCheckbox({Key? key, required List<FormBuilderFieldOption<T>> options, required OptionsOrientation orientation, required ValueChanged<List<T>> onChanged, List<T>? value, List<T>? disabled, Color? activeColor, Color? checkColor, Color? focusColor, Color? hoverColor, MaterialTapTargetSize? materialTapTargetSize, bool tristate = false, Axis wrapDirection = Axis.horizontal, WrapAlignment wrapAlignment = WrapAlignment.start, double wrapSpacing = 0.0, WrapAlignment wrapRunAlignment = WrapAlignment.start, double wrapRunSpacing = 0.0, WrapCrossAlignment wrapCrossAxisAlignment = WrapCrossAlignment.start, TextDirection? wrapTextDirection, VerticalDirection wrapVerticalDirection = VerticalDirection.down, Widget? separator, ControlAffinity controlAffinity = ControlAffinity.leading, VisualDensity? visualDensity, BoxDecoration? itemDecoration})
const

Properties

activeColor → Color?
The color to use when this checkbox is checked.
final
checkColor → Color?
The color to use for the check icon when this checkbox is checked.
final
controlAffinity → ControlAffinity
final
disabled → List<T>?
Specifies which checkbox option values should be disabled. If this is null, then no checkbox options will be disabled.
final
focusColor → Color?
The color for the checkbox's Material when it has the input focus.
final
hashCode → int
The hash code for this object.
no setterinherited
hoverColor → Color?
The color for the checkbox's Material when a pointer is hovering over it.
final
itemDecoration → BoxDecoration?
Applied to a Container wrapping each item if provided
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
materialTapTargetSize → MaterialTapTargetSize?
Configures the minimum size of the tap target.
final
onChanged → ValueChanged<List<T>>
Called when the value of the checkbox group changes.
final
options → List<FormBuilderFieldOption<T>>
A list of string that describes each checkbox. Each item must be distinct.
final
orientation → OptionsOrientation
Specifies the orientation of the elements in itemList.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
separator → Widget?
final
tristate → bool
If true the checkbox's value can be true, false, or null.
final
value → List<T>?
A list of string which specifies automatically checked checkboxes. Every element must match an item from itemList.
final
visualDensity → VisualDensity?
final
wrapAlignment → WrapAlignment
How the children within a run should be placed in the main axis.
final
wrapCrossAxisAlignment → WrapCrossAlignment
How the children within a run should be aligned relative to each other in the cross axis.
final
wrapDirection → Axis
The direction to use as the main axis.
final
wrapRunAlignment → WrapAlignment
How the runs themselves should be placed in the cross axis.
final
wrapRunSpacing → double
How much space to place between the runs themselves in the cross axis.
final
wrapSpacing → double
How much space to place between children in a run in the main axis.
final
wrapTextDirection → TextDirection?
Determines the order to lay children out horizontally and how to interpret start and end in the horizontal direction.
final
wrapVerticalDirection → VerticalDirection
Determines the order to lay children out vertically and how to interpret start and end in the vertical direction.
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
buildItem(int index) → Widget
the composite of all the components for the option at index
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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