copyWith method
LSLApiConfig
copyWith({
- int? multicastPort,
- int? basePort,
- int? portRange,
- IPv6Mode? ipv6,
- ResolveScope? resolveScope,
- String? listenAddress,
- String? ipv6MulticastGroup,
- List<
String> ? machineAddresses, - List<
String> ? linkAddresses, - List<
String> ? siteAddresses, - List<
String> ? organizationAddresses, - List<
String> ? globalAddresses, - List<
String> ? addressesOverride, - int? ttlOverride,
- List<
String> ? knownPeers, - String? sessionId,
- double? watchdogCheckInterval,
- double? watchdogTimeThreshold,
- double? multicastMinRTT,
- double? multicastMaxRTT,
- double? unicastMinRTT,
- double? unicastMaxRTT,
- double? continuousResolveInterval,
- double? timerResolution,
- int? maxCachedQueries,
- double? timeUpdateInterval,
- int? timeUpdateMinProbes,
- int? timeProbeCount,
- double? timeProbeInterval,
- double? timeProbeMaxRTT,
- int? outletBufferReserveMs,
- int? outletBufferReserveSamples,
- int? sendSocketBufferSize,
- int? inletBufferReserveMs,
- int? inletBufferReserveSamples,
- int? receiveSocketBufferSize,
- double? smoothingHalftime,
- bool? forceDefaultTimestamps,
- int? logLevel,
- String? logFile,
Creates a copy of this configuration with the given changes
Implementation
LSLApiConfig copyWith({
int? multicastPort,
int? basePort,
int? portRange,
IPv6Mode? ipv6,
ResolveScope? resolveScope,
String? listenAddress,
String? ipv6MulticastGroup,
List<String>? machineAddresses,
List<String>? linkAddresses,
List<String>? siteAddresses,
List<String>? organizationAddresses,
List<String>? globalAddresses,
List<String>? addressesOverride,
int? ttlOverride,
List<String>? knownPeers,
String? sessionId,
double? watchdogCheckInterval,
double? watchdogTimeThreshold,
double? multicastMinRTT,
double? multicastMaxRTT,
double? unicastMinRTT,
double? unicastMaxRTT,
double? continuousResolveInterval,
double? timerResolution,
int? maxCachedQueries,
double? timeUpdateInterval,
int? timeUpdateMinProbes,
int? timeProbeCount,
double? timeProbeInterval,
double? timeProbeMaxRTT,
int? outletBufferReserveMs,
int? outletBufferReserveSamples,
int? sendSocketBufferSize,
int? inletBufferReserveMs,
int? inletBufferReserveSamples,
int? receiveSocketBufferSize,
double? smoothingHalftime,
bool? forceDefaultTimestamps,
int? logLevel,
String? logFile,
}) {
return LSLApiConfig(
multicastPort: multicastPort ?? this.multicastPort,
basePort: basePort ?? this.basePort,
portRange: portRange ?? this.portRange,
ipv6: ipv6 ?? this.ipv6,
resolveScope: resolveScope ?? this.resolveScope,
listenAddress: listenAddress ?? this.listenAddress,
ipv6MulticastGroup: ipv6MulticastGroup ?? this.ipv6MulticastGroup,
machineAddresses: machineAddresses ?? List.from(this.machineAddresses),
linkAddresses: linkAddresses ?? List.from(this.linkAddresses),
siteAddresses: siteAddresses ?? List.from(this.siteAddresses),
organizationAddresses:
organizationAddresses ?? List.from(this.organizationAddresses),
globalAddresses: globalAddresses ?? List.from(this.globalAddresses),
addressesOverride: addressesOverride ?? List.from(this.addressesOverride),
ttlOverride: ttlOverride ?? this.ttlOverride,
knownPeers: knownPeers ?? List.from(this.knownPeers),
sessionId: sessionId ?? this.sessionId,
watchdogCheckInterval:
watchdogCheckInterval ?? this.watchdogCheckInterval,
watchdogTimeThreshold:
watchdogTimeThreshold ?? this.watchdogTimeThreshold,
multicastMinRTT: multicastMinRTT ?? this.multicastMinRTT,
multicastMaxRTT: multicastMaxRTT ?? this.multicastMaxRTT,
unicastMinRTT: unicastMinRTT ?? this.unicastMinRTT,
unicastMaxRTT: unicastMaxRTT ?? this.unicastMaxRTT,
continuousResolveInterval:
continuousResolveInterval ?? this.continuousResolveInterval,
timerResolution: timerResolution ?? this.timerResolution,
maxCachedQueries: maxCachedQueries ?? this.maxCachedQueries,
timeUpdateInterval: timeUpdateInterval ?? this.timeUpdateInterval,
timeUpdateMinProbes: timeUpdateMinProbes ?? this.timeUpdateMinProbes,
timeProbeCount: timeProbeCount ?? this.timeProbeCount,
timeProbeInterval: timeProbeInterval ?? this.timeProbeInterval,
timeProbeMaxRTT: timeProbeMaxRTT ?? this.timeProbeMaxRTT,
outletBufferReserveMs:
outletBufferReserveMs ?? this.outletBufferReserveMs,
outletBufferReserveSamples:
outletBufferReserveSamples ?? this.outletBufferReserveSamples,
sendSocketBufferSize: sendSocketBufferSize ?? this.sendSocketBufferSize,
inletBufferReserveMs: inletBufferReserveMs ?? this.inletBufferReserveMs,
inletBufferReserveSamples:
inletBufferReserveSamples ?? this.inletBufferReserveSamples,
receiveSocketBufferSize:
receiveSocketBufferSize ?? this.receiveSocketBufferSize,
smoothingHalftime: smoothingHalftime ?? this.smoothingHalftime,
forceDefaultTimestamps:
forceDefaultTimestamps ?? this.forceDefaultTimestamps,
logLevel: logLevel ?? this.logLevel,
logFile: logFile ?? this.logFile,
);
}