copyWith method
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,
);