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,
  fontFamily: 'Inter',
));

Constructors

DigiaConfig({required String apiKey, DigiaLogLevel? logLevel, DigiaEnvironment environment = DigiaEnvironment.production, String? fontFamily, DigiaThemeMode themeMode = DigiaThemeMode.auto, 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
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
isLogLevelExplicit → bool
Whether logLevel came from this app or from DigiaLogLevel.auto.
final
logLevel → DigiaLogLevel
Log verbosity, already resolved. Leave the constructor argument unset (or pass null) for DigiaLogLevel.auto; an explicit value always wins, including forcing DigiaLogLevel.debug in a release build for a QA investigation.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
themeMode → DigiaThemeMode
Theme selection for canvas design tokens. Optional and additive so existing integrations continue to follow the device automatically.
final

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