copyWith method

KillSwitchTheme copyWith({
  1. Color? backgroundColor,
  2. Color? primaryColor,
  3. Color? titleTextColor,
  4. Color? bodyTextColor,
  5. Color? buttonBackgroundColor,
  6. Color? buttonTextColor,
  7. double? borderRadius,
  8. double? buttonBorderRadius,
  9. Color? shadowColor,
  10. double? shadowBlurRadius,
  11. double? shadowSpreadRadius,
  12. TextStyle? titleTextStyle,
  13. TextStyle? bodyTextStyle,
  14. TextStyle? buttonTextStyle,
  15. double? iconSize,
  16. EdgeInsets? dialogPadding,
  17. bool? useDarkTheme,
  18. Color? borderColor,
  19. double? borderWidth,
  20. Color? linkColor,
  21. TextStyle? richContentTextStyle,
  22. Color? inputBorderColor,
  23. Color? inputBackgroundColor,
  24. Color? inputTextColor,
  25. double? mediaBorderRadius,
  26. double? imageMaxHeight,
  27. double? imageMaxWidth,
  28. Duration? animationDuration,
  29. Curve? entranceCurve,
  30. Curve? exitCurve,
  31. bool? enableAnimations,
  32. Duration? loadingAnimationDuration,
  33. bool? enableParticleEffects,
  34. Color? particleColor,
  35. int? particleCount,
  36. 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,
  );
}