copyWith method

TonConnectRequest copyWith({
  1. int? sessionId,
  2. int? messageId,
  3. String? body,
  4. int? expirationDate,
  5. String? topic,
  6. String? traceId,
})

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

Implementation

TonConnectRequest copyWith({
  int? sessionId,
  int? messageId,
  String? body,
  int? expirationDate,
  String? topic,
  String? traceId,
}) => TonConnectRequest(
  sessionId: sessionId ?? this.sessionId,
  messageId: messageId ?? this.messageId,
  body: body ?? this.body,
  expirationDate: expirationDate ?? this.expirationDate,
  topic: topic ?? this.topic,
  traceId: traceId ?? this.traceId,
);