DigiaConfig class
Configuration parameters required to initialize the Digia SDK.
Pass an instance to Digia.initialize at application startup.
Minimal setup (debug / development)
await Digia.initialize(DigiaConfig(apiKey: 'prod_xxxx'));
Production / release setup (local bundle assets)
await Digia.initialize(DigiaConfig(
apiKey: 'prod_xxxx',
flavor: Flavor.release(
initStrategy: NetworkFirstStrategy(),
appConfigPath: 'assets/app_config.json',
functionsPath: 'assets/functions.json',
),
));
Advanced — custom developer config, proxy, inspector
await Digia.initialize(DigiaConfig(
apiKey: 'dev_xxxx',
environment: DigiaEnvironment.sandbox,
developerConfig: DeveloperConfig(
proxyUrl: '192.168.1.100:8888',
baseUrl: 'https://staging.digia.tech/api/v1',
),
));
Constructors
- DigiaConfig({required String apiKey, DigiaLogLevel logLevel = DigiaLogLevel.error, DigiaEnvironment environment = DigiaEnvironment.production, Flavor? flavor, NetworkConfiguration? networkConfiguration, DeveloperConfig? developerConfig})
Properties
- apiKey → String
-
Environment-specific API key from the Digia dashboard.
final
- developerConfig → DeveloperConfig?
-
Optional developer configuration for proxies, inspectors, and
custom backend URLs. Defaults to DeveloperConfig with production
base URL when omitted.
final
- environment → DigiaEnvironment
-
Target environment. Defaults to DigiaEnvironment.production.
final
- flavor → Flavor
-
Flavor that controls how the SDK loads its DSL configuration.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logLevel → DigiaLogLevel
-
Log verbosity. Defaults to DigiaLogLevel.error.
final
- networkConfiguration → NetworkConfiguration?
-
Optional network configuration — timeouts, default HTTP headers.
Defaults to NetworkConfiguration.withDefaults when omitted.
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
-
toOptions(
) → DigiaUIOptions - Builds the internal DigiaUIOptions used by DigiaUI.initialize.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited