copyWith method

ActionValue copyWith({
  1. CameraDescription? cameraDescription,
  2. List<CameraDescription>? cameras,
  3. CameraType? cameraType,
  4. bool? enableAudio,
  5. FlashMode? flashMode,
  6. bool? isTakingPicture,
  7. bool? isRecordingVideo,
  8. bool? isRecordingPaused,
  9. bool? isPlaygroundActive,
})

Implementation

ActionValue copyWith({
  CameraDescription? cameraDescription,
  List<CameraDescription>? cameras,
  CameraType? cameraType,
  bool? enableAudio,
  FlashMode? flashMode,
  bool? isTakingPicture,
  bool? isRecordingVideo,
  bool? isRecordingPaused,
  bool? isPlaygroundActive,
}) {
  return ActionValue(
    resolutionPreset: resolutionPreset,
    imageFormatGroup: imageFormatGroup,
    cameraDescription: cameraDescription ?? this.cameraDescription,
    cameras: cameras ?? this.cameras,
    cameraType: cameraType ?? this.cameraType,
    enableAudio: enableAudio ?? this.enableAudio,
    flashMode: flashMode ?? this.flashMode,
    isTakingPicture: isTakingPicture ?? this.isTakingPicture,
    isRecordingVideo: isRecordingVideo ?? this.isRecordingVideo,
    isRecordingPaused: isRecordingPaused ?? this.isRecordingPaused,
    isPlaygroundActive: isPlaygroundActive ?? this.isPlaygroundActive,
  );
}