DigiaConfig class

Configuration parameters required to initialize the Digia SDK.

Pass an instance to Digia.initialize at application startup. The property set mirrors the native (Android / iOS) SDKs.

Minimal setup

await Digia.initialize(DigiaConfig(apiKey: 'prod_xxxx'));

With overrides

await Digia.initialize(DigiaConfig(
  apiKey: 'dev_xxxx',
  environment: DigiaEnvironment.sandbox,
  baseUrl: 'https://dev.digia.tech',
  fontFamily: 'Inter',
));

Constructors

DigiaConfig({required String apiKey, DigiaLogLevel logLevel = DigiaLogLevel.error, DigiaEnvironment environment = DigiaEnvironment.production, String? baseUrl, String? fontFamily, DigiaActionHandlers actionHandlers = const DigiaActionHandlers(), DigiaAnalyticsConfig analyticsConfig = const DigiaAnalyticsConfig()})

Properties

actionHandlers DigiaActionHandlers
Optional typed handlers for app-owned actions.
final
analyticsConfig DigiaAnalyticsConfig
Analytics collection and dispatch configuration. Defaults to DigiaAnalyticsConfig with standard production settings.
final
apiKey String
Environment-specific API key from the Digia dashboard.
final
baseUrl String?
Optional override for the engage API host (e.g. https://app.digia.tech). When null, the host is derived from environment. Mirrors Android's DigiaConfig.baseUrl.
final
environment DigiaEnvironment
Target environment. Defaults to DigiaEnvironment.production.
final
fontFamily String?
Optional global font family applied to all Digia-rendered text (e.g. nudge titles, bodies, and button labels). Resolved as a Flutter font family registered in the host app's pubspec.yaml. Mirrors Android's DigiaConfig.fontFamily.
final
hashCode int
The hash code for this object.
no setterinherited
logLevel DigiaLogLevel
Log verbosity. Defaults to DigiaLogLevel.error.
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