copyWith method

RBarcodeCameraValue copyWith({
  1. bool? isInitialized,
  2. String? errorDescription,
  3. Size? previewSize,
  4. bool? isTorchOn,
  5. List<RBarcodeFormat>? formats,
  6. RBarcodeCameraDescription? description,
  7. RBarcodeCameraResolutionPreset? resolutionPreset,
  8. bool? isDebug,
})

Implementation

RBarcodeCameraValue copyWith({
  bool? isInitialized,
  String? errorDescription,
  Size? previewSize,
  bool? isTorchOn,
  List<RBarcodeFormat>? formats,
  RBarcodeCameraDescription? description,
  RBarcodeCameraResolutionPreset? resolutionPreset,
  bool? isDebug,
}) {
  return RBarcodeCameraValue(
    isInitialized: isInitialized ?? this.isInitialized,
    errorDescription: errorDescription ?? this.errorDescription,
    previewSize: previewSize ?? this.previewSize,
    isTorchOn: isTorchOn ?? this.isTorchOn,
    formats: formats ?? this.formats,
    description: description ?? this.description,
    resolutionPreset: resolutionPreset ?? this.resolutionPreset,
    isDebug: isDebug ?? this.isDebug,
  );
}