copyWith method

  1. @override
MessageV0 copyWith({
  1. MessageHeader? header,
  2. List<SolAddress>? accountKeys,
  3. SolAddress? recentBlockhash,
  4. List<CompiledInstruction>? compiledInstructions,
  5. 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);
}