CheckboxTheme class
Theme configuration for Checkbox widget styling and visual appearance.
Defines the visual properties used by checkbox components including colors, dimensions, spacing, and border styling. All properties are optional and fall back to framework defaults when not specified.
Can be applied globally through ComponentTheme or used to override specific checkbox instances with custom styling.
Constructors
- CheckboxTheme.new({Color? activeColor, Color? borderColor, double? size, double? gap, BorderRadiusGeometry? borderRadius})
-
Creates a CheckboxTheme.
const
Properties
- activeColor → Color?
-
Color of the checkbox background when in checked state.
final
- borderColor → Color?
-
Color of the checkbox border when in unchecked state.
final
- borderRadius → BorderRadiusGeometry?
-
Border radius applied to the checkbox square corners.
final
- gap → double?
-
Spacing between the checkbox and its leading/trailing widgets.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → double?
-
Size of the checkbox square in logical pixels.
final
Methods
-
copyWith(
{ValueGetter< Color?> ? activeColor, ValueGetter<Color?> ? borderColor, ValueGetter<double?> ? size, ValueGetter<double?> ? gap, ValueGetter<BorderRadiusGeometry?> ? borderRadius}) → CheckboxTheme - Creates a copy of this theme with specified properties overridden.
-
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.
override