copyWith method
CameraSetting
copyWith(
{ - ResolutionPreset? resolutionPreset,
- ImageFormatGroup? imageFormatGroup,
- Duration? videoDuration,
- bool? editAfterCapture,
- bool? enableGallery,
})
Implementation
CameraSetting copyWith({
ResolutionPreset? resolutionPreset,
ImageFormatGroup? imageFormatGroup,
Duration? videoDuration,
bool? editAfterCapture,
bool? enableGallery,
}) {
return CameraSetting(
resolutionPreset: resolutionPreset ?? this.resolutionPreset,
imageFormatGroup: imageFormatGroup ?? this.imageFormatGroup,
videoDuration: videoDuration ?? this.videoDuration,
editAfterCapture: editAfterCapture ?? this.editAfterCapture,
enableGallery: enableGallery ?? this.enableGallery,
);
}