copyWith method

CameraValue copyWith({
  1. bool? isInitialized,
  2. bool? isRecordingVideo,
  3. bool? isStreamingVideoRtmp,
  4. bool? isTakingPicture,
  5. bool? isStreamingImages,
  6. String? errorDescription,
  7. Size? previewSize,
  8. int? previewQuarterTurns,
  9. bool? isRecordingPaused,
  10. bool? isStreamingPaused,
  11. dynamic event,
})

Implementation

CameraValue copyWith({
  bool? isInitialized,
  bool? isRecordingVideo,
  bool? isStreamingVideoRtmp,
  bool? isTakingPicture,
  bool? isStreamingImages,
  String? errorDescription,
  Size? previewSize,
  int? previewQuarterTurns,
  bool? isRecordingPaused,
  bool? isStreamingPaused,
  dynamic event,
}) =>
    CameraValue(
      isInitialized: isInitialized ?? this.isInitialized,
      errorDescription: errorDescription ?? this.errorDescription,
      previewSize: previewSize ?? this.previewSize,
      previewQuarterTurns: previewQuarterTurns ?? this.previewQuarterTurns,
      isRecordingVideo: isRecordingVideo ?? this.isRecordingVideo,
      isStreamingVideoRtmp: isStreamingVideoRtmp ?? this.isStreamingVideoRtmp,
      isTakingPicture: isTakingPicture ?? this.isTakingPicture,
      isStreamingImages: isStreamingImages ?? this.isStreamingImages,
      isRecordingPaused: isRecordingPaused ?? this.isRecordingVideo,
      isStreamingPaused: isStreamingPaused ?? this.isStreamingPaused,
      event: event ?? this.event,
    );