when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult legacy(
    1. MessageHeader header,
    2. List<Ed25519HDPublicKey> accountKeys,
    3. String recentBlockhash,
    4. List<CompiledInstruction> instructions,
    ),
  2. required TResult v0(
    1. MessageHeader header,
    2. List<Ed25519HDPublicKey> accountKeys,
    3. String recentBlockhash,
    4. List<CompiledInstruction> instructions,
    5. List<MessageAddressTableLookup> addressTableLookups,
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(
          MessageHeader header,
          List<Ed25519HDPublicKey> accountKeys,
          String recentBlockhash,
          List<CompiledInstruction> instructions)
      legacy,
  required TResult Function(
          MessageHeader header,
          List<Ed25519HDPublicKey> accountKeys,
          String recentBlockhash,
          List<CompiledInstruction> instructions,
          List<MessageAddressTableLookup> addressTableLookups)
      v0,
}) =>
    throw _privateConstructorUsedError;