copyWith method
TonConnectSession
copyWith({
- int? id,
- String? dappClientId,
- String? walletClientId,
- int? creationDate,
- TonConnectManifest? manifest,
- String? nonce,
- TonConnectSessionState? state,
- dynamic extra,
- 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,
);