copyWith method
MessageTonConnectRequest
copyWith({
- int? sessionId,
- TonConnectRequestState? state,
- String? dappName,
- String? topic,
- String? traceId,
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
MessageTonConnectRequest copyWith({
int? sessionId,
TonConnectRequestState? state,
String? dappName,
String? topic,
String? traceId,
}) => MessageTonConnectRequest(
sessionId: sessionId ?? this.sessionId,
state: state ?? this.state,
dappName: dappName ?? this.dappName,
topic: topic ?? this.topic,
traceId: traceId ?? this.traceId,
);