PlatformCheckboxData class final

Platform-shared configuration for a checkbox widget.

Contains common properties used by both Material and Cupertino checkboxes.

Implementers

Constructors

PlatformCheckboxData({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})
Creates platform checkbox configuration.
const

Properties

activeColor Color?
Color of the checkbox when active.
final
autofocus bool
Whether the checkbox should autofocus.
final
checkColor Color?
Color of the check mark.
final
fillColor WidgetStateProperty<Color?>?
Fill color as a WidgetStateProperty.
final
focusColor Color?
Color of the checkbox when focused.
final
focusNode FocusNode?
Focus node for the checkbox.
final
hashCode int
The hash code for this object.
no setterinherited
isEnabled bool
Whether the checkbox is enabled.
final
mouseCursor MouseCursor?
Mouse cursor when hovering over the checkbox.
final
onChanged ValueChanged<bool?>?
Callback when the checkbox value changes.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel String?
Semantic label for accessibility.
final
shape OutlinedBorder?
Shape of the checkbox border.
final
side BorderSide?
Border side of the checkbox.
final
tristate bool
Whether the checkbox supports three states (true, false, null).
final
value bool?
Current value of the checkbox.
final
widgetKey Key?
Key applied to the underlying platform widget.
final

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

kDefaultAutofocus → const bool
Default value for autofocus.