copyWith method

AccountMeta copyWith({
  1. Pubkey? pubkey,
  2. bool? isSigner,
  3. bool? isWritable,
})

Creates a copy of this class applying the provided parameters to the new instance.

Implementation

AccountMeta copyWith({
  final Pubkey? pubkey,
  final bool? isSigner,
  final bool? isWritable,
}) {
  return AccountMeta(
    pubkey ?? this.pubkey,
    isSigner: isSigner ?? this.isSigner,
    isWritable: isWritable ?? this.isWritable,
  );
}