copyWith method

SessionSetRequestArgs copyWith({
  1. num? altSpeedDown,
  2. bool? altSpeedEnabled,
  3. num? altSpeedTimeBegin,
  4. num? altSpeedTimeDay,
  5. bool? altSpeedTimeEnabled,
  6. num? altSpeedTimeEnd,
  7. num? altSpeedUp,
  8. bool? blocklistEnabled,
  9. String? blocklistUrl,
  10. num? cacheSizeMb,
  11. String? defaultTrackers,
  12. bool? dhtEnabled,
  13. String? downloadDir,
  14. num? downloadDirFreeSpace,
  15. bool? downloadQueueEnabled,
  16. num? downloadQueueSize,
  17. String? encryption,
  18. bool? idleSeedingLimitEnabled,
  19. num? idleSeedingLimit,
  20. bool? incompleteDirEnabled,
  21. String? incompleteDir,
  22. bool? lpdEnabled,
  23. num? peerLimitGlobal,
  24. num? peerLimitPerTorrent,
  25. bool? peerPortRandomOnStart,
  26. num? peerPort,
  27. bool? pexEnabled,
  28. bool? portForwardingEnabled,
  29. bool? queueStalledEnabled,
  30. num? queueStalledMinutes,
  31. bool? renamePartialFiles,
  32. bool? scriptTorrentAddedEnabled,
  33. String? scriptTorrentAddedFilename,
  34. bool? scriptTorrentDoneEnabled,
  35. String? scriptTorrentDoneFilename,
  36. bool? scriptTorrentDoneSeedingEnabled,
  37. String? scriptTorrentDoneSeedingFilename,
  38. bool? seedQueueEnabled,
  39. num? seedQueueSize,
  40. num? seedRatioLimit,
  41. bool? seedRatioLimited,
  42. bool? speedLimitDownEnabled,
  43. num? speedLimitDown,
  44. bool? speedLimitUpEnabled,
  45. num? speedLimitUp,
  46. bool? startAddedTorrents,
  47. bool? trashOriginalTorrentFiles,
  48. bool? utpEnabled,
})

Implementation

SessionSetRequestArgs copyWith({
  num? altSpeedDown,
  bool? altSpeedEnabled,
  num? altSpeedTimeBegin,
  num? altSpeedTimeDay,
  bool? altSpeedTimeEnabled,
  num? altSpeedTimeEnd,
  num? altSpeedUp,
  bool? blocklistEnabled,
  String? blocklistUrl,
  num? cacheSizeMb,
  String? defaultTrackers,
  bool? dhtEnabled,
  String? downloadDir,
  num? downloadDirFreeSpace,
  bool? downloadQueueEnabled,
  num? downloadQueueSize,
  String? encryption,
  bool? idleSeedingLimitEnabled,
  num? idleSeedingLimit,
  bool? incompleteDirEnabled,
  String? incompleteDir,
  bool? lpdEnabled,
  num? peerLimitGlobal,
  num? peerLimitPerTorrent,
  bool? peerPortRandomOnStart,
  num? peerPort,
  bool? pexEnabled,
  bool? portForwardingEnabled,
  bool? queueStalledEnabled,
  num? queueStalledMinutes,
  bool? renamePartialFiles,
  bool? scriptTorrentAddedEnabled,
  String? scriptTorrentAddedFilename,
  bool? scriptTorrentDoneEnabled,
  String? scriptTorrentDoneFilename,
  bool? scriptTorrentDoneSeedingEnabled,
  String? scriptTorrentDoneSeedingFilename,
  bool? seedQueueEnabled,
  num? seedQueueSize,
  num? seedRatioLimit,
  bool? seedRatioLimited,
  bool? speedLimitDownEnabled,
  num? speedLimitDown,
  bool? speedLimitUpEnabled,
  num? speedLimitUp,
  bool? startAddedTorrents,
  bool? trashOriginalTorrentFiles,
  bool? utpEnabled,
}) {
  return SessionSetRequestArgs(
    altSpeedDown: altSpeedDown ?? this.altSpeedDown,
    altSpeedEnabled: altSpeedEnabled ?? this.altSpeedEnabled,
    altSpeedTimeBegin: altSpeedTimeBegin ?? this.altSpeedTimeBegin,
    altSpeedTimeDay: altSpeedTimeDay ?? this.altSpeedTimeDay,
    altSpeedTimeEnabled: altSpeedTimeEnabled ?? this.altSpeedTimeEnabled,
    altSpeedTimeEnd: altSpeedTimeEnd ?? this.altSpeedTimeEnd,
    altSpeedUp: altSpeedUp ?? this.altSpeedUp,
    blocklistEnabled: blocklistEnabled ?? this.blocklistEnabled,
    blocklistUrl: blocklistUrl ?? this.blocklistUrl,
    cacheSizeMb: cacheSizeMb ?? this.cacheSizeMb,
    defaultTrackers: defaultTrackers ?? this.defaultTrackers,
    dhtEnabled: dhtEnabled ?? this.dhtEnabled,
    downloadDir: downloadDir ?? this.downloadDir,
    downloadDirFreeSpace: downloadDirFreeSpace ?? this.downloadDirFreeSpace,
    downloadQueueEnabled: downloadQueueEnabled ?? this.downloadQueueEnabled,
    downloadQueueSize: downloadQueueSize ?? this.downloadQueueSize,
    encryption: encryption ?? this.encryption,
    idleSeedingLimitEnabled:
        idleSeedingLimitEnabled ?? this.idleSeedingLimitEnabled,
    idleSeedingLimit: idleSeedingLimit ?? this.idleSeedingLimit,
    incompleteDirEnabled: incompleteDirEnabled ?? this.incompleteDirEnabled,
    incompleteDir: incompleteDir ?? this.incompleteDir,
    lpdEnabled: lpdEnabled ?? this.lpdEnabled,
    peerLimitGlobal: peerLimitGlobal ?? this.peerLimitGlobal,
    peerLimitPerTorrent: peerLimitPerTorrent ?? this.peerLimitPerTorrent,
    peerPortRandomOnStart:
        peerPortRandomOnStart ?? this.peerPortRandomOnStart,
    peerPort: peerPort ?? this.peerPort,
    pexEnabled: pexEnabled ?? this.pexEnabled,
    portForwardingEnabled:
        portForwardingEnabled ?? this.portForwardingEnabled,
    queueStalledEnabled: queueStalledEnabled ?? this.queueStalledEnabled,
    queueStalledMinutes: queueStalledMinutes ?? this.queueStalledMinutes,
    renamePartialFiles: renamePartialFiles ?? this.renamePartialFiles,
    scriptTorrentAddedEnabled:
        scriptTorrentAddedEnabled ?? this.scriptTorrentAddedEnabled,
    scriptTorrentAddedFilename:
        scriptTorrentAddedFilename ?? this.scriptTorrentAddedFilename,
    scriptTorrentDoneEnabled:
        scriptTorrentDoneEnabled ?? this.scriptTorrentDoneEnabled,
    scriptTorrentDoneFilename:
        scriptTorrentDoneFilename ?? this.scriptTorrentDoneFilename,
    scriptTorrentDoneSeedingEnabled: scriptTorrentDoneSeedingEnabled ??
        this.scriptTorrentDoneSeedingEnabled,
    scriptTorrentDoneSeedingFilename: scriptTorrentDoneSeedingFilename ??
        this.scriptTorrentDoneSeedingFilename,
    seedQueueEnabled: seedQueueEnabled ?? this.seedQueueEnabled,
    seedQueueSize: seedQueueSize ?? this.seedQueueSize,
    seedRatioLimit: seedRatioLimit ?? this.seedRatioLimit,
    seedRatioLimited: seedRatioLimited ?? this.seedRatioLimited,
    speedLimitDownEnabled:
        speedLimitDownEnabled ?? this.speedLimitDownEnabled,
    speedLimitDown: speedLimitDown ?? this.speedLimitDown,
    speedLimitUpEnabled: speedLimitUpEnabled ?? this.speedLimitUpEnabled,
    speedLimitUp: speedLimitUp ?? this.speedLimitUp,
    startAddedTorrents: startAddedTorrents ?? this.startAddedTorrents,
    trashOriginalTorrentFiles:
        trashOriginalTorrentFiles ?? this.trashOriginalTorrentFiles,
    utpEnabled: utpEnabled ?? this.utpEnabled,
  );
}