MaterialCheckboxData class final

Material-specific configuration for a checkbox widget.

Extends PlatformCheckboxData with Material-only properties.

Inheritance

Constructors

MaterialCheckboxData({ValueChanged<bool?>? onChanged, bool? value, bool tristate = false, bool isEnabled = true, Key? widgetKey, MouseCursor? mouseCursor, Color? activeColor, WidgetStateProperty<Color?>? fillColor, Color? checkColor, Color? focusColor, FocusNode? focusNode, bool autofocus = kDefaultAutofocus, OutlinedBorder? shape, BorderSide? side, String? semanticLabel, Color? hoverColor, WidgetStateProperty<Color?>? overlayColor, double? splashRadius, MaterialTapTargetSize? materialTapTargetSize, VisualDensity? visualDensity, bool isError = kDefaultIsError})
Creates Material-specific checkbox configuration.
const

Properties

activeColor Color?
Color of the checkbox when active.
finalinherited
autofocus bool
Whether the checkbox should autofocus.
finalinherited
checkColor Color?
Color of the check mark.
finalinherited
fillColor WidgetStateProperty<Color?>?
Fill color as a WidgetStateProperty.
finalinherited
focusColor Color?
Color of the checkbox when focused.
finalinherited
focusNode FocusNode?
Focus node for the checkbox.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
hoverColor Color?
Color when hovering over the checkbox.
final
isEnabled bool
Whether the checkbox is enabled.
finalinherited
isError bool
Whether the checkbox is in an error state.
final
materialTapTargetSize MaterialTapTargetSize?
Material tap target size.
final
mouseCursor MouseCursor?
Mouse cursor when hovering over the checkbox.
finalinherited
onChanged ValueChanged<bool?>?
Callback when the checkbox value changes.
finalinherited
overlayColor WidgetStateProperty<Color?>?
Overlay color as a WidgetStateProperty.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel String?
Semantic label for accessibility.
finalinherited
shape OutlinedBorder?
Shape of the checkbox border.
finalinherited
side BorderSide?
Border side of the checkbox.
finalinherited
splashRadius double?
Splash radius of the checkbox.
final
tristate bool
Whether the checkbox supports three states (true, false, null).
finalinherited
value bool?
Current value of the checkbox.
finalinherited
visualDensity VisualDensity?
Visual density of the checkbox.
final
widgetKey Key?
Key applied to the underlying platform widget.
finalinherited

Methods

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

Constants

kDefaultIsError → const bool
Default value for isError.