copyWith method
DrivenCheckboxStyle
copyWith({
- double? size,
- BoxShape? shape,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- Color? backgroundColor,
- double? backgroundOpacity,
- int? backgroundAlpha,
- Color? borderColor,
- double? borderOpacity,
- int? borderAlpha,
- double? borderWidth,
- BorderRadius? borderRadius,
- BorderStyle? borderStyle,
- double? checkmarkInset,
- Color? checkmarkColor,
- double? checkmarkOpacity,
- int? checkmarkAlpha,
- double? checkmarkWeight,
- StrokeStyle? checkmarkStyle,
- Color? overlayColor,
- double? overlayOpacity,
- bool? overlayDisabled,
- double? overlayRadius,
- bool? mergeResolved,
- CheckboxStyle? selectedStyle,
- CheckboxStyle? indeterminateStyle,
- CheckboxStyle? focusedStyle,
- CheckboxStyle? hoveredStyle,
- CheckboxStyle? pressedStyle,
- CheckboxStyle? disabledStyle,
override
Creates a copy of this DrivenCheckboxStyle but with the given fields replaced with the new values.
Implementation
@override
DrivenCheckboxStyle copyWith({
double? size,
BoxShape? shape,
EdgeInsetsGeometry? margin,
EdgeInsetsGeometry? padding,
Color? backgroundColor,
double? backgroundOpacity,
int? backgroundAlpha,
Color? borderColor,
double? borderOpacity,
int? borderAlpha,
double? borderWidth,
BorderRadius? borderRadius,
BorderStyle? borderStyle,
double? checkmarkInset,
Color? checkmarkColor,
double? checkmarkOpacity,
int? checkmarkAlpha,
double? checkmarkWeight,
StrokeStyle? checkmarkStyle,
Color? overlayColor,
double? overlayOpacity,
bool? overlayDisabled,
double? overlayRadius,
bool? mergeResolved,
CheckboxStyle? selectedStyle,
CheckboxStyle? indeterminateStyle,
CheckboxStyle? focusedStyle,
CheckboxStyle? hoveredStyle,
CheckboxStyle? pressedStyle,
CheckboxStyle? disabledStyle,
}) {
return DrivenCheckboxStyle(
margin: margin ?? this.margin,
padding: padding ?? this.padding,
backgroundColor: backgroundColor ?? this.backgroundColor,
backgroundOpacity: backgroundOpacity ?? this.backgroundOpacity,
backgroundAlpha: backgroundAlpha ?? this.backgroundAlpha,
shape: shape ?? this.shape,
borderColor: borderColor ?? this.borderColor,
borderOpacity: borderOpacity ?? this.borderOpacity,
borderAlpha: borderAlpha ?? this.borderAlpha,
borderWidth: borderWidth ?? this.borderWidth,
borderRadius: borderRadius ?? this.borderRadius,
borderStyle: borderStyle ?? this.borderStyle,
size: size ?? this.size,
checkmarkInset: checkmarkInset ?? this.checkmarkInset,
checkmarkColor: checkmarkColor ?? this.checkmarkColor,
checkmarkOpacity: checkmarkOpacity ?? this.checkmarkOpacity,
checkmarkAlpha: checkmarkAlpha ?? this.checkmarkAlpha,
checkmarkWeight: checkmarkWeight ?? this.checkmarkWeight,
checkmarkStyle: checkmarkStyle ?? this.checkmarkStyle,
overlayColor: overlayColor ?? this.overlayColor,
overlayOpacity: overlayOpacity ?? this.overlayOpacity,
overlayDisabled: overlayDisabled ?? this.overlayDisabled,
overlayRadius: overlayRadius ?? this.overlayRadius,
mergeResolved: mergeResolved ?? this.mergeResolved,
selectedStyle: this.selectedStyle?.merge(selectedStyle) ?? selectedStyle,
indeterminateStyle: this.indeterminateStyle?.merge(indeterminateStyle) ??
indeterminateStyle,
focusedStyle: this.focusedStyle?.merge(focusedStyle) ?? focusedStyle,
hoveredStyle: this.hoveredStyle?.merge(hoveredStyle) ?? hoveredStyle,
pressedStyle: this.pressedStyle?.merge(pressedStyle) ?? pressedStyle,
disabledStyle: this.disabledStyle?.merge(disabledStyle) ?? disabledStyle,
);
}