Digia class abstract final

Public static facade for the Digia SDK.

All integration starts here. There is no instance to create or hold — every call is a static method on Digia.

Quick start

// 1. Initialize once at app startup
Digia.initialize(DigiaConfig(apiKey: 'prod_xxxx'));

// 2. Register your CEP plugin after it is ready
Digia.register(CleverTapPlugin(instance: cleverTapInstance));

// 3. Wrap your app root with DigiaHost (in MaterialApp.builder)
MaterialApp(
  navigatorObservers: [DigiaNavigatorObserver()],
  builder: (context, child) => DigiaHost(child: child!),
)

// 4. Track screens (or use DigiaNavigatorObserver for automatic tracking)
Digia.setCurrentScreen('checkout');

The internal singleton lives inside the SDK and is never exposed to app developers — there is no Digia instance to null-check or hold.

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 Methods

initialize(DigiaConfig config) Future<void>
Initializes the Digia SDK with the provided configuration.
register(DigiaCEPPlugin plugin) → void
Registers a CEP plugin with the SDK.
setCurrentScreen(String name) → void
Informs Digia that the user has navigated to a new screen.