copyWith method
MessageV0
copyWith({
- MessageHeader? header,
- List<
SolAddress> ? accountKeys, - SolAddress? recentBlockhash,
- List<
CompiledInstruction> ? compiledInstructions, - List<
AddressTableLookup> ? addressTableLookups,
override
Implementation
@override
MessageV0 copyWith(
{MessageHeader? header,
List<SolAddress>? accountKeys,
SolAddress? recentBlockhash,
List<CompiledInstruction>? compiledInstructions,
List<AddressTableLookup>? addressTableLookups}) {
return MessageV0(
header: header ?? this.header,
accountKeys: accountKeys ?? this.accountKeys,
recentBlockhash: recentBlockhash ?? this.recentBlockhash,
compiledInstructions: compiledInstructions ?? this.compiledInstructions,
addressTableLookups: addressTableLookups ?? this.addressTableLookups);
}