copyWith method
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,
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,
);
}