copyWith method

IdentifyOptions copyWith({
  1. String? protocolVersion,
  2. String? userAgent,
  3. bool? disableSignedPeerRecord,
  4. MetricsTracer? metricsTracer,
  5. 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,
  );
}