copyWith method

AccountMeta copyWith({
  1. SolAddress? publicKey,
  2. bool? isSigner,
  3. bool? isWritable,
})

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,
  );
}