copyWith method
RBarcodeCameraValue
copyWith({
- bool? isInitialized,
- String? errorDescription,
- Size? previewSize,
- bool? isTorchOn,
- List<
RBarcodeFormat> ? formats, - RBarcodeCameraDescription? description,
- RBarcodeCameraResolutionPreset? resolutionPreset,
- 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,
);
}