copyWith method

ScannerOverlayConfig copyWith({
  1. Color? animationColor,
  2. Color? borderColor,
  3. Color? backgroundBlurColor,
  4. double? borderRadius,
  5. double? cornerRadius,
  6. ScannerAnimation? scannerAnimation,
  7. ScannerOverlayBackground? scannerOverlayBackground,
  8. ScannerBorder? scannerBorder,
  9. Cubic? curve,
  10. Widget? background,
  11. double? lineThickness,
  12. Animation<double>? animation,
  13. Duration? animationDuration,
  14. Color? successColor,
  15. Color? errorColor,
  16. bool? animateOnSuccess,
  17. bool? animateOnError,
  18. 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,
  );
}