copyWith method
ActionValue
copyWith(
{ - CameraDescription? cameraDescription,
- List<CameraDescription>? cameras,
- CameraType? cameraType,
- bool? enableAudio,
- FlashMode? flashMode,
- bool? isTakingPicture,
- bool? isRecordingVideo,
- bool? isRecordingPaused,
- 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,
);
}