OnDeviceAiStatus class
Current host support and model readiness for on-device local AI generation.
Constructors
Properties
- canInitialize → bool
-
Whether the native platform can initialize or download the model.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initializationProgress → int?
-
Real initialization progress from 0 to 100, when the platform provides it.
final
- isAvailable → bool
-
Convenience for the previous availability concept.
no setter
- isInitializing → bool
-
Whether model initialization or download is currently running.
final
- isReady → bool
-
Whether generation can run now.
final
- isSupported → bool
-
Whether this platform, OS, and device can support local AI.
final
- platformStatus → String?
-
Raw platform status used for logging or diagnostics.
final
- reason → String?
-
Human-readable reason when isAvailable is false or initialization fails.
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
Constants
- unsupported → const OnDeviceAiStatus
- Status returned when the platform plugin is not registered.