DigiaOverlayController class

Internal controller that coordinates between DigiaInstance (imperative) and DigiaHost (declarative widget tree).

Mirrors Flutter's own controller pattern (ScrollController, AnimationController, TextEditingController) — a plain Dart object that bridges the SDK world and the widget tree.

Never exposed to app developers.

Inheritance

Constructors

DigiaOverlayController()

Properties

activePayload CEPTriggerPayload?
The currently active campaign payload, or null when no experience is shown.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addInlineSlot(String slotKey, CampaignConfigModel config, CEPTriggerPayload payload) → void
Stores the resolved config and its trigger payload for slotKey. The payload's cepCampaignId is what removeInlineSlotByCampaignId matches on, so no separate id map is needed.
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
clearInlineSlots() → void
dismiss() → void
Called by DigiaInstance on invalidation, or by DigiaHost when the user dismisses the experience.
dispose() → void
Discards any resources used by the object.
inherited
getInlineConfig(String slotKey) CampaignConfigModel?
The render config for slotKey, or null when no inline campaign is active.
getSlot(String slotKey) CEPTriggerPayload?
The trigger payload for slotKey (story CTA variables read this).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeInlineSlotByCampaignId(String cepCampaignId) → void
Clears every inline slot whose payload was triggered by cepCampaignId.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
show(CEPTriggerPayload payload) → void
Called by DigiaInstance when a new modal experience is ready to render. Notifies DigiaHost to present the overlay.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited