CheckboxRenderBase class abstract

Shared structural base for themed checkbox renderers.

Checkboxes diverge more than buttons or cards: the box element and the checkmark differ structurally per theme. This base therefore factors the parts that are genuinely identical and error-prone — the group/item interaction attribute wiring, the wrapper element and click event, and the label/description block scaffold — while leaving the visual box and the theme-specific style values to abstract members the subclass supplies.

This base lives in core and depends only on core props and interaction helpers; it must never depend on a theme package.

Inheritance

Constructors

CheckboxRenderBase(CheckboxProps props, {Key? key})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one component replaces another component in the tree.
finalinherited
props CheckboxProps
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context) Component
Describes the part of the user interface represented by this component.
override
buildBox(CheckboxProps props, Map<String, String> itemAttrs) Component
Builds the visual checkbox box (and its checkmark). itemAttrs are the resolved group-item/interaction attributes that must be placed on the box.
createElement() Element
Creates a StatelessElement to manage this component's location in the tree.
inherited
descriptionTextStyles(CheckboxProps props) Map<String, String>
Inline styles for the description text span.
extraWrapperAttrs(CheckboxProps props) Map<String, String>
Extra wrapper attributes merged after data-state/data-disabled (e.g. data-variant/data-size); return an empty map for none.
labelTextStyles(CheckboxProps props) Map<String, String>
Inline styles for the label text span.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRebuild(covariant Component newComponent) bool
Implement this method to determine whether a rebuild can be skipped.
inherited
toString() String
A string representation of this object.
inherited
wrapperClasses(CheckboxProps props) String
Classes for the wrapper element (some themes append a disabled marker).
wrapperStyles(CheckboxProps props) Map<String, String>
Inline styles for the wrapper element.

Operators

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