ShadCheckboxTheme class
- Annotations
-
- @themeGen
- @immutable
Constructors
- ShadCheckboxTheme({bool canMerge = true, Color? color, Color? uncheckedColor, Duration? duration, ShadDecoration? decoration, double? size, EdgeInsetsGeometry? padding, CrossAxisAlignment? crossAxisAlignment, EdgeInsetsGeometry? checkboxPadding})
-
const
Properties
- canMerge → bool
-
no setter
- checkboxPadding → EdgeInsetsGeometry?
-
The padding around the checkbox field only.
final
- color → Color?
-
The color of the checkbox when checked.
Defaults to the theme’s primary color if not specified.
final
- crossAxisAlignment → CrossAxisAlignment?
-
The cross-axis alignment of the checkbox and label/sublabel.
Defaults to CrossAxisAlignment.start if both label and sublabel are
present, otherwise CrossAxisAlignment.center.
final
- decoration → ShadDecoration?
-
The decoration applied to the checkbox box.
Merged with the theme’s default decoration if provided.
final
- duration → Duration?
-
The duration of the checkmark animation when toggling.
Defaults to 100 milliseconds if not specified.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- padding → EdgeInsetsGeometry?
-
The padding between the checkbox and its label/sublabel.
Defaults to
EdgeInsetsDirectional.only(start: 8)if not specified.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → double?
-
The size (width and height) of the checkbox box.
Defaults to 16 if not specified.
final
- uncheckedColor → Color?
-
The color of the checkbox when unchecked.
Defaults to the theme’s input color if not specified.
final
Methods
-
copyWith(
{Color? color, Color? uncheckedColor, double? size, Duration? duration, ShadDecoration? decoration, EdgeInsetsGeometry? padding, CrossAxisAlignment? crossAxisAlignment, EdgeInsetsGeometry? checkboxPadding}) → ShadCheckboxTheme -
inherited
-
merge(
ShadCheckboxTheme? other) → ShadCheckboxTheme -
inherited
-
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
Static Methods
-
lerp(
ShadCheckboxTheme? a, ShadCheckboxTheme? b, double t) → ShadCheckboxTheme?