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
-
- Object
- ChangeNotifier
- DigiaOverlayController
Constructors
Properties
- activePayload → InAppPayload?
-
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
- onEvent ↔ void Function(DigiaExperienceEvent, InAppPayload)?
-
Set by DigiaInstance at init time.
DigiaHost calls this when a user interaction event occurs.
DigiaInstance handles the event and forwards it to the active plugin.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
slotPayloads
→ Map<
String, InAppPayload> -
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
addSlot(
String placementKey, InAppPayload payload) → void -
clearSlots(
) → void -
dismiss(
) → void - Called by DigiaInstance on invalidation, or by DigiaHost when the user dismisses the experience. Notifies DigiaHost to rebuild and remove the overlay.
-
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
removeSlotById(
String campaignId) → void -
show(
InAppPayload payload) → void - Called by DigiaInstance when a new experience is ready to render. Notifies DigiaHost to rebuild and display the overlay.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited