copyWith method

LSLApiConfig copyWith({
  1. int? multicastPort,
  2. int? basePort,
  3. int? portRange,
  4. IPv6Mode? ipv6,
  5. ResolveScope? resolveScope,
  6. String? listenAddress,
  7. String? ipv6MulticastGroup,
  8. List<String>? machineAddresses,
  9. List<String>? linkAddresses,
  10. List<String>? siteAddresses,
  11. List<String>? organizationAddresses,
  12. List<String>? globalAddresses,
  13. List<String>? addressesOverride,
  14. int? ttlOverride,
  15. List<String>? knownPeers,
  16. String? sessionId,
  17. double? watchdogCheckInterval,
  18. double? watchdogTimeThreshold,
  19. double? multicastMinRTT,
  20. double? multicastMaxRTT,
  21. double? unicastMinRTT,
  22. double? unicastMaxRTT,
  23. double? continuousResolveInterval,
  24. double? timerResolution,
  25. int? maxCachedQueries,
  26. double? timeUpdateInterval,
  27. int? timeUpdateMinProbes,
  28. int? timeProbeCount,
  29. double? timeProbeInterval,
  30. double? timeProbeMaxRTT,
  31. int? outletBufferReserveMs,
  32. int? outletBufferReserveSamples,
  33. int? sendSocketBufferSize,
  34. int? inletBufferReserveMs,
  35. int? inletBufferReserveSamples,
  36. int? receiveSocketBufferSize,
  37. double? smoothingHalftime,
  38. bool? forceDefaultTimestamps,
  39. int? logLevel,
  40. 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,
  );
}