copyWith method
ScannerOverlayConfig
copyWith({
- Color? animationColor,
- Color? borderColor,
- Color? backgroundBlurColor,
- double? borderRadius,
- double? cornerRadius,
- ScannerAnimation? scannerAnimation,
- ScannerOverlayBackground? scannerOverlayBackground,
- ScannerBorder? scannerBorder,
- Cubic? curve,
- Widget? background,
- double? lineThickness,
- Animation<
double> ? animation, - Duration? animationDuration,
- Color? successColor,
- Color? errorColor,
- bool? animateOnSuccess,
- bool? animateOnError,
- double? cornerLength,
Implementation
ScannerOverlayConfig copyWith({
Color? animationColor,
Color? borderColor,
Color? backgroundBlurColor,
double? borderRadius,
double? cornerRadius,
ScannerAnimation? scannerAnimation,
ScannerOverlayBackground? scannerOverlayBackground,
ScannerBorder? scannerBorder,
Cubic? curve,
Widget? background,
double? lineThickness,
Animation<double>? animation,
Duration? animationDuration,
Color? successColor,
Color? errorColor,
bool? animateOnSuccess,
bool? animateOnError,
double? cornerLength,
}) {
return ScannerOverlayConfig(
animationColor: animationColor ?? this.animationColor,
borderColor: borderColor ?? this.borderColor,
backgroundBlurColor: backgroundBlurColor ?? this.backgroundBlurColor,
borderRadius: borderRadius ?? this.borderRadius,
cornerRadius: cornerRadius ?? this.cornerRadius,
scannerAnimation: scannerAnimation ?? this.scannerAnimation,
scannerOverlayBackground:
scannerOverlayBackground ?? this.scannerOverlayBackground,
scannerBorder: scannerBorder ?? this.scannerBorder,
curve: curve ?? this.curve,
background: background ?? this.background,
lineThickness: lineThickness ?? this.lineThickness,
animation: animation ?? this.animation,
animationDuration: animationDuration ?? this.animationDuration,
successColor: successColor ?? this.successColor,
errorColor: errorColor ?? this.errorColor,
animateOnSuccess: animateOnSuccess ?? this.animateOnSuccess,
animateOnError: animateOnError ?? this.animateOnError,
cornerLength: cornerLength ?? this.cornerLength,
);
}