NpuStackCheck class final

Whether this build carries a vendor's NPU stack (NpuStack) where LiteRT will load it, and why not: from NativeAssetsManifest.json for a stack the build registers (checkNpuStackInManifest; Qualcomm on Android and Linux arm64), by file presence for Intel's beside the Windows executable (checkIntelNpuStack). The LLM engine and the EmbeddingGemma 2 placement both ask, through npuStackOf.

Constructors

NpuStackCheck.bundled()
const
NpuStackCheck.missing(String reason)
const
NpuStackCheck.unknown(String reason)
The manifest could not answer (no Flutter binding in this isolate, a format this version does not know). Not a "no": the npu attempt goes ahead, and core's prepareNpuDispatchDir — which checks every library in the APK before anything is loaded — turns a missing stack into the fallback instead.
const

Properties

bundled → bool
final
hashCode → int
The hash code for this object.
no setterinherited
known → bool
Whether the manifest answered at all; see NpuStackCheck.unknown.
final
reason → String?
Why npu cannot run on account of the build, or why that is unknown; null when bundled.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited