copyWith method

TorrentSetRequestArgs copyWith({
  1. TorrentIds<TorrentId>? ids,
  2. num? bandwidthPriority,
  3. num? downloadLimit,
  4. bool? downloadLimited,
  5. FileIndices? filesUnwanted,
  6. FileIndices? filesWanted,
  7. bool? honorsSessionLimits,
  8. String? location,
  9. num? peerLimit,
  10. FileIndices? priorityHigh,
  11. FileIndices? priorityLow,
  12. FileIndices? priorityNormal,
  13. num? queuePosition,
  14. num? seedIdleLimit,
  15. IdleLimitMode? seedIdleMode,
  16. num? seedRatioLimit,
  17. RatioLimitMode? seedRatioMode,
  18. bool? sequentialDownload,
  19. List<String>? trackerAdd,
  20. List<TrackerId>? trackerRemove,
  21. List<TrackerReplace>? trackerReplace,
  22. num? uploadLimit,
  23. bool? uploadLimited,
  24. List<String>? labels,
  25. String? group,
  26. TrackerListIter? trackerList,
})

Implementation

TorrentSetRequestArgs copyWith({
  TorrentIds? ids,
  num? bandwidthPriority,
  num? downloadLimit,
  bool? downloadLimited,
  FileIndices? filesUnwanted,
  FileIndices? filesWanted,
  bool? honorsSessionLimits,
  String? location,
  num? peerLimit,
  FileIndices? priorityHigh,
  FileIndices? priorityLow,
  FileIndices? priorityNormal,
  num? queuePosition,
  num? seedIdleLimit,
  IdleLimitMode? seedIdleMode,
  num? seedRatioLimit,
  RatioLimitMode? seedRatioMode,
  bool? sequentialDownload,
  List<String>? trackerAdd,
  List<TrackerId>? trackerRemove,
  List<TrackerReplace>? trackerReplace,
  num? uploadLimit,
  bool? uploadLimited,
  List<String>? labels,
  String? group,
  TrackerListIter? trackerList,
}) {
  return TorrentSetRequestArgs(
    ids: ids ?? this.ids,
    bandwidthPriority: bandwidthPriority ?? this.bandwidthPriority,
    downloadLimit: downloadLimit ?? this.downloadLimit,
    downloadLimited: downloadLimited ?? this.downloadLimited,
    filesUnwanted: filesUnwanted ?? this.filesUnwanted,
    filesWanted: filesWanted ?? this.filesWanted,
    honorsSessionLimits: honorsSessionLimits ?? this.honorsSessionLimits,
    location: location ?? this.location,
    peerLimit: peerLimit ?? this.peerLimit,
    priorityHigh: priorityHigh ?? this.priorityHigh,
    priorityLow: priorityLow ?? this.priorityLow,
    priorityNormal: priorityNormal ?? this.priorityNormal,
    queuePosition: queuePosition ?? this.queuePosition,
    seedIdleLimit: seedIdleLimit ?? this.seedIdleLimit,
    seedIdleMode: seedIdleMode ?? this.seedIdleMode,
    seedRatioLimit: seedRatioLimit ?? this.seedRatioLimit,
    seedRatioMode: seedRatioMode ?? this.seedRatioMode,
    sequentialDownload: sequentialDownload ?? this.sequentialDownload,
    trackerAdd: trackerAdd ?? this.trackerAdd,
    trackerRemove: trackerRemove ?? this.trackerRemove,
    trackerReplace: trackerReplace ?? this.trackerReplace,
    uploadLimit: uploadLimit ?? this.uploadLimit,
    uploadLimited: uploadLimited ?? this.uploadLimited,
    labels: labels ?? this.labels,
    group: group ?? this.group,
    trackerList: trackerList ?? this.trackerList,
  );
}