copyWith method

ReplaceTonWallet copyWith({
  1. String? password,
  2. String? anchorPublicKey,
  3. TonWalletOwnershipProof? proof,
})

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

Implementation

ReplaceTonWallet copyWith({
  String? password,
  String? anchorPublicKey,
  TonWalletOwnershipProof? proof,
}) => ReplaceTonWallet(
  password: password ?? this.password,
  anchorPublicKey: anchorPublicKey ?? this.anchorPublicKey,
  proof: proof ?? this.proof,
);