LocalLlmProvider class final
On-device LLM inference (llama.cpp via llama_cpp_dart). null on web
— there's no isolate / dart:io / GGUF runtime in the browser. Also
null when the feature flag EnvConfig.enableLocalLlm is off, which
hides the provider from users while keeping the implementation in the
tree. On native with the flag on, isConfigured() returns false until
the user downloads + activates a model in AI settings, so chat sessions
cleanly skip the local provider when nothing is installed.
- Inheritance
-
- Object
- ProviderOrFamily
- ProviderBase<
LocalLlmDatasource?> - LocalLlmProvider
Properties
- argument → Object?
-
If this provider was created with the
.familymodifier, argument is the variable that was used.finalinherited -
dependencies
→ Iterable<
ProviderOrFamily> ? -
The list of providers that this provider potentially depends on.
finalinherited
- from → Family?
-
If this provider was created with the
.familymodifier, from is the.familyinstance.finalinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- isAutoDispose → bool
-
Whether the state associated to this provider should be disposed
automatically when the provider stops being listened.
finalinherited
- name → String?
-
A custom label for providers.
finalinherited
-
origin
→ ProviderBase<
LocalLlmDatasource?> -
The provider that is overridden.
no setterinherited
- retry → Retry?
-
The retry strategy to use when a provider fails.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
$createElement(
$ProviderPointer pointer) → $ProviderElement< LocalLlmDatasource?> - @nodoc
-
create(
Ref ref) → LocalLlmDatasource? - @nodoc
-
debugGetCreateSourceHash(
) → String - A debug-only function for obtaining a hash of the source code of the initialization function.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
overrideWith(
Create< LocalLlmDatasource?> create) → Override -
Override the provider with a new initialization function.
inherited
-
overrideWithValue(
LocalLlmDatasource? value) → Override - Overrides a provider with a value, ejecting the default behavior.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited