copyWith method
Method to create a copy of AccountMeta with optional parameters overridden.
Implementation
AccountMeta copyWith({
SolAddress? publicKey,
bool? isSigner,
bool? isWritable,
}) {
return AccountMeta(
publicKey: publicKey ?? this.publicKey,
isSigner: isSigner ?? this.isSigner,
isWritable: isWritable ?? this.isWritable,
);
}