copyWith method

  1. @override
InternalLinkTypeTonConnect copyWith({
  1. int? version,
  2. String? dappClientId,
  3. TonConnectConnectRequest? connectRequest,
  4. String? returnStrategy,
  5. String? rpcRequest,
  6. String? traceId,
  7. dynamic extra,
  8. int? clientId,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
InternalLinkTypeTonConnect copyWith({
  int? version,
  String? dappClientId,
  TonConnectConnectRequest? connectRequest,
  String? returnStrategy,
  String? rpcRequest,
  String? traceId,
  dynamic extra,
  int? clientId,
}) => InternalLinkTypeTonConnect(
  version: version ?? this.version,
  dappClientId: dappClientId ?? this.dappClientId,
  connectRequest: connectRequest ?? this.connectRequest,
  returnStrategy: returnStrategy ?? this.returnStrategy,
  rpcRequest: rpcRequest ?? this.rpcRequest,
  traceId: traceId ?? this.traceId,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);