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({void onInlineRemoved(CEPTriggerPayload)?})

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
inlineSlots → Map<String, CEPTriggerPayload>
Every occupied slot, slot key → payload. Read-only; routing reads it to build the surface occupants.
no setter
onInlineRemoved → void Function(CEPTriggerPayload)?
final
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
clearInlineSlot(String slotKey) → void
Clears the inline slot at slotKey, if any. No-op if nothing is active there.
clearInlineSlots() → void
Clears every inline slot across every placement.
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
refreshInlineConfigs(CampaignConfigModel? resolve(CEPTriggerPayload payload)) → void
Rebuilds already-mounted inline slot configs after a local design-theme change. Trigger payloads are retained, so this does not replay CEP events or impressions. Returning null removes a slot whose campaign no longer parses under the selected theme.
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