copyWith method

TonWalletOwnershipProof copyWith({
  1. String? publicKey,
  2. int? timestamp,
  3. String? signature,
})

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

Implementation

TonWalletOwnershipProof copyWith({
  String? publicKey,
  int? timestamp,
  String? signature,
}) => TonWalletOwnershipProof(
  publicKey: publicKey ?? this.publicKey,
  timestamp: timestamp ?? this.timestamp,
  signature: signature ?? this.signature,
);