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