maybeWhen<TResult extends Object?> method

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

Implementation

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