copyWith method

ShadCheckboxTheme copyWith({
  1. Color? color,
  2. Color? uncheckedColor,
  3. double? size,
  4. Duration? duration,
  5. ShadDecoration? decoration,
  6. EdgeInsetsGeometry? padding,
  7. CrossAxisAlignment? crossAxisAlignment,
  8. 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,
  );
}