copyWith method

TorrentAddRequestArgs copyWith({
  1. TorrentAddFileInfo? fileInfo,
  2. List<Cookie>? cookies,
  3. String? downloadDir,
  4. bool? paused,
  5. num? peerLimit,
  6. num? bandwidthPriority,
  7. FileIndices? filesWanted,
  8. FileIndices? filesUnwanted,
  9. FileIndices? priorityHigh,
  10. FileIndices? priorityLow,
  11. FileIndices? priorityNormal,
  12. List<String>? labels,
})

Implementation

TorrentAddRequestArgs copyWith({
  TorrentAddFileInfo? fileInfo,
  List<Cookie>? cookies,
  String? downloadDir,
  bool? paused,
  num? peerLimit,
  num? bandwidthPriority,
  FileIndices? filesWanted,
  FileIndices? filesUnwanted,
  FileIndices? priorityHigh,
  FileIndices? priorityLow,
  FileIndices? priorityNormal,
  List<String>? labels,
}) {
  return TorrentAddRequestArgs(
    fileInfo: fileInfo ?? this.fileInfo,
    cookies: cookies ?? this.cookies,
    downloadDir: downloadDir ?? this.downloadDir,
    paused: paused ?? this.paused,
    peerLimit: peerLimit ?? this.peerLimit,
    bandwidthPriority: bandwidthPriority ?? this.bandwidthPriority,
    filesWanted: filesWanted ?? this.filesWanted,
    filesUnwanted: filesUnwanted ?? this.filesUnwanted,
    priorityHigh: priorityHigh ?? this.priorityHigh,
    priorityLow: priorityLow ?? this.priorityLow,
    priorityNormal: priorityNormal ?? this.priorityNormal,
    labels: labels ?? this.labels,
  );
}