copyWith method

CameraValue copyWith({
  1. bool? isInitialized,
  2. bool? isRecordingVideo,
  3. bool? isTakingPicture,
  4. bool? isStreamingImages,
  5. String? errorDescription,
  6. Size? previewSize,
  7. bool? isRecordingPaused,
  8. bool? autoFocusEnabled,
  9. FlashMode? flashMode,
})

Implementation

CameraValue copyWith({
  bool? isInitialized,
  bool? isRecordingVideo,
  bool? isTakingPicture,
  bool? isStreamingImages,
  String? errorDescription,
  Size? previewSize,
  bool? isRecordingPaused,
  bool? autoFocusEnabled,
  FlashMode? flashMode
}) {
  return CameraValue(
    isInitialized: isInitialized ?? this.isInitialized,
    errorDescription: errorDescription,
    previewSize: previewSize ?? this.previewSize,
    isRecordingVideo: isRecordingVideo ?? this.isRecordingVideo,
    isTakingPicture: isTakingPicture ?? this.isTakingPicture,
    isStreamingImages: isStreamingImages ?? this.isStreamingImages,
    isRecordingPaused: isRecordingPaused ?? _isRecordingPaused,
    autoFocusEnabled: autoFocusEnabled ?? this.autoFocusEnabled,
    flashMode: flashMode ?? this.flashMode,
  );
}