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