whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<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,
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
    throw _privateConstructorUsedError;