# copyWith method

LivenessCheckTheme copyWith({

1. Color? backgroundColor,
2. Color? primaryColor,
3. Color? btnRetryBGColor,
4. Color? btnTextRetryColor,
5. TextStyle? btnRetryTextStyle,
6. double? btnRetryHeight,
7. EdgeInsets? btnRetryPadding,
8. double? btnRetryBorderRadius,
9. Color? successColor,
10. Color? errorColor,
11. Color? warningColor,
12. Color? borderColor,
13. Color? textColor,
14. Color? overlayColor,
15. double? circleSize,
16. double? borderWidth,
17. CircleBorderStyle? borderStyle,
18. double? dashLength,
19. double? dashGap,
20. double? cameraPadding,
21. String? successAsset,
22. String? failAsset,
23. String? fontFamily,
24. TextStyle? titleTextStyle,
25. TextStyle? messageTextStyle,
26. TextStyle? errorTextStyle,
27. TextStyle? successTextStyle,

})

Creates a copy of this theme with the given fields replaced.

## Implementation

    LivenessCheckTheme copyWith({
      Color? backgroundColor,
      Color? primaryColor,
      Color? btnRetryBGColor,
      Color? btnTextRetryColor,
      TextStyle? btnRetryTextStyle,
      double? btnRetryHeight,
      EdgeInsets? btnRetryPadding,
      double? btnRetryBorderRadius,
      Color? successColor,
      Color? errorColor,
      Color? warningColor,
      Color? borderColor,
      Color? textColor,
      Color? overlayColor,
      double? circleSize,
      double? borderWidth,
      CircleBorderStyle? borderStyle,
      double? dashLength,
      double? dashGap,
      double? cameraPadding,
      String? successAsset,
      String? failAsset,
      String? fontFamily,
      TextStyle? titleTextStyle,
      TextStyle? messageTextStyle,
      TextStyle? errorTextStyle,
      TextStyle? successTextStyle,
    }) {
      return LivenessCheckTheme(
        backgroundColor: backgroundColor ?? this.backgroundColor,
        primaryColor: primaryColor ?? this.primaryColor,
        successColor: successColor ?? this.successColor,
        errorColor: errorColor ?? this.errorColor,
        btnRetryBGColor: btnRetryBGColor ?? this.btnRetryBGColor,
        btnTextRetryColor: btnTextRetryColor ?? this.btnTextRetryColor,
        btnRetryTextStyle: btnRetryTextStyle ?? this.btnRetryTextStyle,
        btnRetryHeight: btnRetryHeight ?? this.btnRetryHeight,
        btnRetryPadding: btnRetryPadding ?? this.btnRetryPadding,
        btnRetryBorderRadius: btnRetryBorderRadius ?? this.btnRetryBorderRadius,
        warningColor: warningColor ?? this.warningColor,
        borderColor: borderColor ?? this.borderColor,
        textColor: textColor ?? this.textColor,
        overlayColor: overlayColor ?? this.overlayColor,
        circleSize: circleSize ?? this.circleSize,
        borderWidth: borderWidth ?? this.borderWidth,
        borderStyle: borderStyle ?? this.borderStyle,
        dashLength: dashLength ?? this.dashLength,
        dashGap: dashGap ?? this.dashGap,
        cameraPadding: cameraPadding ?? this.cameraPadding,
        successAsset: successAsset ?? this.successAsset,
        failAsset: failAsset ?? this.failAsset,
        fontFamily: fontFamily ?? this.fontFamily,
        titleTextStyle: titleTextStyle ?? this.titleTextStyle,
        messageTextStyle: messageTextStyle ?? this.messageTextStyle,
        errorTextStyle: errorTextStyle ?? this.errorTextStyle,
        successTextStyle: successTextStyle ?? this.successTextStyle,
      );
    }