copyWith method
Creates a copy of these options with the given changes.
Implementation
IdentifyOptions copyWith({
String? protocolVersion,
String? userAgent,
bool? disableSignedPeerRecord,
MetricsTracer? metricsTracer,
bool? disableObservedAddrManager,
int? observedAddrActivationThreshold,
}) {
return IdentifyOptions(
protocolVersion: protocolVersion ?? this.protocolVersion,
userAgent: userAgent ?? this.userAgent,
disableSignedPeerRecord: disableSignedPeerRecord ?? this.disableSignedPeerRecord,
metricsTracer: metricsTracer ?? this.metricsTracer,
disableObservedAddrManager: disableObservedAddrManager ?? this.disableObservedAddrManager,
observedAddrActivationThreshold: observedAddrActivationThreshold ?? this.observedAddrActivationThreshold,
);
}