copyWith method
CameraValue
copyWith(
{ - bool? isInitialized,
- bool? isRecordingVideo,
- bool? isStreamingVideoRtmp,
- bool? isTakingPicture,
- bool? isStreamingImages,
- String? errorDescription,
- Size? previewSize,
- int? previewQuarterTurns,
- bool? isRecordingPaused,
- bool? isStreamingPaused,
- 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,
}) {
return CameraValue(
isInitialized: isInitialized ?? this.isInitialized,
errorDescription: 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 ?? _isRecordingPaused,
isStreamingPaused: isStreamingPaused ?? _isStreamingPaused,
event: event,
);
}