copyWith method

  1. @override
Message copyWith({
  1. MessageHeader? header,
  2. List<SolAddress>? accountKeys,
  3. SolAddress? recentBlockhash,
  4. List<CompiledInstruction>? compiledInstructions,
  5. List<AddressTableLookup>? addressTableLookups,
})
override

Implementation

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