copyWith method

OptimizeStorage copyWith({
  1. int? size,
  2. int? ttl,
  3. int? count,
  4. int? immunityDelay,
  5. List<FileType>? fileTypes,
  6. List<int>? chatIds,
  7. List<int>? excludeChatIds,
  8. bool? returnDeletedFileStatistics,
  9. int? chatLimit,
})

Implementation

OptimizeStorage copyWith({
  int? size,
  int? ttl,
  int? count,
  int? immunityDelay,
  List<FileType>? fileTypes,
  List<int>? chatIds,
  List<int>? excludeChatIds,
  bool? returnDeletedFileStatistics,
  int? chatLimit,
}) => OptimizeStorage(
  size: size ?? this.size,
  ttl: ttl ?? this.ttl,
  count: count ?? this.count,
  immunityDelay: immunityDelay ?? this.immunityDelay,
  fileTypes: fileTypes ?? this.fileTypes,
  chatIds: chatIds ?? this.chatIds,
  excludeChatIds: excludeChatIds ?? this.excludeChatIds,
  returnDeletedFileStatistics: returnDeletedFileStatistics ?? this.returnDeletedFileStatistics,
  chatLimit: chatLimit ?? this.chatLimit,
);