copyWith method

  1. @override
MessageTonConnectRequest copyWith({
  1. int? sessionId,
  2. TonConnectRequestState? state,
  3. String? dappName,
  4. String? topic,
  5. 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,
);