copyWith method

CameraSetting copyWith({
  1. ResolutionPreset? resolutionPreset,
  2. ImageFormatGroup? imageFormatGroup,
  3. Duration? videoDuration,
  4. bool? editAfterCapture,
  5. 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,
  );
}