copyWith method

AutoDownloadSettings copyWith({
  1. bool? isAutoDownloadEnabled,
  2. int? maxPhotoFileSize,
  3. int? maxVideoFileSize,
  4. int? maxOtherFileSize,
  5. int? videoUploadBitrate,
  6. bool? preloadLargeVideos,
  7. bool? preloadNextAudio,
  8. bool? preloadStories,
  9. bool? useLessDataForCalls,
})

Implementation

AutoDownloadSettings copyWith({
  bool? isAutoDownloadEnabled,
  int? maxPhotoFileSize,
  int? maxVideoFileSize,
  int? maxOtherFileSize,
  int? videoUploadBitrate,
  bool? preloadLargeVideos,
  bool? preloadNextAudio,
  bool? preloadStories,
  bool? useLessDataForCalls,
}) =>
    AutoDownloadSettings(
      isAutoDownloadEnabled:
          isAutoDownloadEnabled ?? this.isAutoDownloadEnabled,
      maxPhotoFileSize: maxPhotoFileSize ?? this.maxPhotoFileSize,
      maxVideoFileSize: maxVideoFileSize ?? this.maxVideoFileSize,
      maxOtherFileSize: maxOtherFileSize ?? this.maxOtherFileSize,
      videoUploadBitrate: videoUploadBitrate ?? this.videoUploadBitrate,
      preloadLargeVideos: preloadLargeVideos ?? this.preloadLargeVideos,
      preloadNextAudio: preloadNextAudio ?? this.preloadNextAudio,
      preloadStories: preloadStories ?? this.preloadStories,
      useLessDataForCalls: useLessDataForCalls ?? this.useLessDataForCalls,
    );