copyWith method

TonConnectConnectData copyWith({
  1. int? sessionId,
  2. String? challengeAnswer,
  3. String? body,
  4. TonWalletOwnershipProof? proof,
})

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

Implementation

TonConnectConnectData copyWith({
  int? sessionId,
  String? challengeAnswer,
  String? body,
  TonWalletOwnershipProof? proof,
}) => TonConnectConnectData(
  sessionId: sessionId ?? this.sessionId,
  challengeAnswer: challengeAnswer ?? this.challengeAnswer,
  body: body ?? this.body,
  proof: proof ?? this.proof,
);