Checkbox class

Undocumented public member.

Inheritance
Implemented types

Constructors

Checkbox({Key? key, required bool value, required String label, required void onChanged(bool newValue), bool focused = false, Style style = Style.empty, Style focusedStyle = const Style(modifiers: Modifier.reverse)})
Creates a new Checkbox.

Properties

focused → bool
Whether the widget has keyboard focus.
final
focusedStyle → Style
The rendering style applied when the checkbox is focused.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
The optional key for this widget.
finalinherited
label → String
The descriptive text label next to the checkbox.
final
onChanged → void Function(bool newValue)
The callback triggered when the state toggles.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
style → Style
The normal rendering style.
final
value → bool
The current check state (checked if true).
final

Methods

createElement() → Element
Creates an Element to manage this widget's location in the tree.
inherited
createState() → State<Checkbox>
Creates the mutable state for this widget at a given location in the tree.
override
getIntrinsicHeight(int width) → int
Computes the intrinsic height of this widget under the given width constraint.
inherited
getIntrinsicWidth(int height) → int
Computes the intrinsic width of this widget under the given height constraint.
inherited
handleMouseEvent(MouseEvent event, int localX, int localY, Rect area) → void
Handles a mouse event at local coordinates and bounding area.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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