EnvConfig class

Compile-time environment configuration.

Values are injected via --dart-define at build time: flutter build ... --dart-define=APP_ENV=staging --dart-define=DEEP_LINK_SCHEME=io.supabase.dutato.staging

Defaults to production values when no defines are provided.

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Properties

isLocalLlmAvailable bool
Combined gate: local LLM needs both a native platform AND the flag. Web has no isolate / dart:io / GGUF runtime, so the flag alone is not sufficient.
no setter
isStaging bool
no setter

Constants

appEnv → const String
deepLinkScheme → const String
enableLocalLlm → const bool
Whether the on-device LLM provider (llama.cpp via llama_cpp_dart) is exposed in the UI. Off by default; turn on with --dart-define=ENABLE_LOCAL_LLM=true. The code that powers the provider (datasource, GGUF specs, isolate engine) is still compiled — this only hides the user-facing surface and skips runtime wiring.