copyWith method
KillSwitchTheme
copyWith({
- Color? backgroundColor,
- Color? primaryColor,
- Color? titleTextColor,
- Color? bodyTextColor,
- Color? buttonBackgroundColor,
- Color? buttonTextColor,
- double? borderRadius,
- double? buttonBorderRadius,
- Color? shadowColor,
- double? shadowBlurRadius,
- double? shadowSpreadRadius,
- TextStyle? titleTextStyle,
- TextStyle? bodyTextStyle,
- TextStyle? buttonTextStyle,
- double? iconSize,
- EdgeInsets? dialogPadding,
- bool? useDarkTheme,
- Color? borderColor,
- double? borderWidth,
- Color? linkColor,
- TextStyle? richContentTextStyle,
- Color? inputBorderColor,
- Color? inputBackgroundColor,
- Color? inputTextColor,
- double? mediaBorderRadius,
- double? imageMaxHeight,
- double? imageMaxWidth,
- Duration? animationDuration,
- Curve? entranceCurve,
- Curve? exitCurve,
- bool? enableAnimations,
- Duration? loadingAnimationDuration,
- bool? enableParticleEffects,
- Color? particleColor,
- int? particleCount,
- AnimationType? animationType,
Creates a copy of this theme with the given fields replaced
Implementation
KillSwitchTheme copyWith({
Color? backgroundColor,
Color? primaryColor,
Color? titleTextColor,
Color? bodyTextColor,
Color? buttonBackgroundColor,
Color? buttonTextColor,
double? borderRadius,
double? buttonBorderRadius,
Color? shadowColor,
double? shadowBlurRadius,
double? shadowSpreadRadius,
TextStyle? titleTextStyle,
TextStyle? bodyTextStyle,
TextStyle? buttonTextStyle,
double? iconSize,
EdgeInsets? dialogPadding,
bool? useDarkTheme,
Color? borderColor,
double? borderWidth,
Color? linkColor,
TextStyle? richContentTextStyle,
Color? inputBorderColor,
Color? inputBackgroundColor,
Color? inputTextColor,
double? mediaBorderRadius,
double? imageMaxHeight,
double? imageMaxWidth,
Duration? animationDuration,
Curve? entranceCurve,
Curve? exitCurve,
bool? enableAnimations,
Duration? loadingAnimationDuration,
bool? enableParticleEffects,
Color? particleColor,
int? particleCount,
AnimationType? animationType,
}) {
return KillSwitchTheme(
backgroundColor: backgroundColor ?? this.backgroundColor,
primaryColor: primaryColor ?? this.primaryColor,
titleTextColor: titleTextColor ?? this.titleTextColor,
bodyTextColor: bodyTextColor ?? this.bodyTextColor,
buttonBackgroundColor:
buttonBackgroundColor ?? this.buttonBackgroundColor,
buttonTextColor: buttonTextColor ?? this.buttonTextColor,
borderRadius: borderRadius ?? this.borderRadius,
buttonBorderRadius: buttonBorderRadius ?? this.buttonBorderRadius,
shadowColor: shadowColor ?? this.shadowColor,
shadowBlurRadius: shadowBlurRadius ?? this.shadowBlurRadius,
shadowSpreadRadius: shadowSpreadRadius ?? this.shadowSpreadRadius,
titleTextStyle: titleTextStyle ?? this.titleTextStyle,
bodyTextStyle: bodyTextStyle ?? this.bodyTextStyle,
buttonTextStyle: buttonTextStyle ?? this.buttonTextStyle,
iconSize: iconSize ?? this.iconSize,
dialogPadding: dialogPadding ?? this.dialogPadding,
useDarkTheme: useDarkTheme ?? this.useDarkTheme,
borderColor: borderColor ?? this.borderColor,
borderWidth: borderWidth ?? this.borderWidth,
linkColor: linkColor ?? this.linkColor,
richContentTextStyle: richContentTextStyle ?? this.richContentTextStyle,
inputBorderColor: inputBorderColor ?? this.inputBorderColor,
inputBackgroundColor: inputBackgroundColor ?? this.inputBackgroundColor,
inputTextColor: inputTextColor ?? this.inputTextColor,
mediaBorderRadius: mediaBorderRadius ?? this.mediaBorderRadius,
imageMaxHeight: imageMaxHeight ?? this.imageMaxHeight,
imageMaxWidth: imageMaxWidth ?? this.imageMaxWidth,
animationDuration: animationDuration ?? this.animationDuration,
entranceCurve: entranceCurve ?? this.entranceCurve,
exitCurve: exitCurve ?? this.exitCurve,
enableAnimations: enableAnimations ?? this.enableAnimations,
loadingAnimationDuration:
loadingAnimationDuration ?? this.loadingAnimationDuration,
enableParticleEffects:
enableParticleEffects ?? this.enableParticleEffects,
particleColor: particleColor ?? this.particleColor,
particleCount: particleCount ?? this.particleCount,
animationType: animationType ?? this.animationType,
);
}