copyWith method
SdChipThemeData
copyWith({
- Color? backgroundColor,
- Color? selectedColor,
- Color? disabledColor,
- Color? textColor,
- Color? selectedTextColor,
- Color? disabledTextColor,
- Color? borderColor,
- Color? selectedBorderColor,
- Color? disabledBorderColor,
- TextStyle? textStyle,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- BorderRadiusGeometry? borderRadius,
- double? iconSize,
- double? elevation,
- double? selectedElevation,
- double? borderWidth,
- double? selectedBorderWidth,
- Duration? duration,
- Curve? curve,
- double? pressedScale,
- Color? shadowColor,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
SdChipThemeData copyWith({
Color? backgroundColor,
Color? selectedColor,
Color? disabledColor,
Color? textColor,
Color? selectedTextColor,
Color? disabledTextColor,
Color? borderColor,
Color? selectedBorderColor,
Color? disabledBorderColor,
TextStyle? textStyle,
EdgeInsetsGeometry? padding,
EdgeInsetsGeometry? margin,
BorderRadiusGeometry? borderRadius,
double? iconSize,
double? elevation,
double? selectedElevation,
double? borderWidth,
double? selectedBorderWidth,
Duration? duration,
Curve? curve,
double? pressedScale,
Color? shadowColor,
}) {
return SdChipThemeData(
backgroundColor: backgroundColor ?? this.backgroundColor,
selectedColor: selectedColor ?? this.selectedColor,
disabledColor: disabledColor ?? this.disabledColor,
textColor: textColor ?? this.textColor,
selectedTextColor: selectedTextColor ?? this.selectedTextColor,
disabledTextColor: disabledTextColor ?? this.disabledTextColor,
borderColor: borderColor ?? this.borderColor,
selectedBorderColor: selectedBorderColor ?? this.selectedBorderColor,
disabledBorderColor: disabledBorderColor ?? this.disabledBorderColor,
textStyle: textStyle ?? this.textStyle,
padding: padding ?? this.padding,
margin: margin ?? this.margin,
borderRadius: borderRadius ?? this.borderRadius,
iconSize: iconSize ?? this.iconSize,
elevation: elevation ?? this.elevation,
selectedElevation: selectedElevation ?? this.selectedElevation,
borderWidth: borderWidth ?? this.borderWidth,
selectedBorderWidth: selectedBorderWidth ?? this.selectedBorderWidth,
duration: duration ?? this.duration,
curve: curve ?? this.curve,
pressedScale: pressedScale ?? this.pressedScale,
shadowColor: shadowColor ?? this.shadowColor,
);
}