copyWith method
ShadCheckboxTheme
copyWith({
- Color? color,
- Color? uncheckedColor,
- double? size,
- Duration? duration,
- ShadDecoration? decoration,
- EdgeInsetsGeometry? padding,
- CrossAxisAlignment? crossAxisAlignment,
- EdgeInsetsGeometry? checkboxPadding,
inherited
Implementation
ShadCheckboxTheme copyWith({
Color? color,
Color? uncheckedColor,
double? size,
Duration? duration,
ShadDecoration? decoration,
EdgeInsetsGeometry? padding,
CrossAxisAlignment? crossAxisAlignment,
EdgeInsetsGeometry? checkboxPadding,
}) {
final _this = (this as ShadCheckboxTheme);
return ShadCheckboxTheme(
color: color ?? _this.color,
uncheckedColor: uncheckedColor ?? _this.uncheckedColor,
size: size ?? _this.size,
duration: duration ?? _this.duration,
decoration: decoration ?? _this.decoration,
padding: padding ?? _this.padding,
crossAxisAlignment: crossAxisAlignment ?? _this.crossAxisAlignment,
checkboxPadding: checkboxPadding ?? _this.checkboxPadding,
);
}