addInlineSlot method

void addInlineSlot(
  1. String slotKey,
  2. CampaignConfigModel config,
  3. CEPTriggerPayload payload
)

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.

Implementation

void addInlineSlot(
  String slotKey,
  CampaignConfigModel config,
  CEPTriggerPayload payload,
) {
  _slotConfigs[slotKey] = config;
  _slotPayloads[slotKey] = payload;
  notifyListeners();
}