copyWith method

TonConnectSession copyWith({
  1. int? id,
  2. String? dappClientId,
  3. String? walletClientId,
  4. int? creationDate,
  5. TonConnectManifest? manifest,
  6. String? nonce,
  7. TonConnectSessionState? state,
  8. dynamic extra,
  9. int? clientId,
})

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

Implementation

TonConnectSession copyWith({
  int? id,
  String? dappClientId,
  String? walletClientId,
  int? creationDate,
  TonConnectManifest? manifest,
  String? nonce,
  TonConnectSessionState? state,
  dynamic extra,
  int? clientId,
}) => TonConnectSession(
  id: id ?? this.id,
  dappClientId: dappClientId ?? this.dappClientId,
  walletClientId: walletClientId ?? this.walletClientId,
  creationDate: creationDate ?? this.creationDate,
  manifest: manifest ?? this.manifest,
  nonce: nonce ?? this.nonce,
  state: state ?? this.state,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);