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,
})

Implementation

CameraValue copyWith({
  bool? isInitialized,
  bool? isRecordingVideo,
  bool? isTakingPicture,
  bool? isStreamingImages,
  String? errorDescription,
  Size? previewSize,
  bool? isRecordingPaused,
}) {
  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,
  );
}