removeCampaign method

void removeCampaign(
  1. String placementId
)

Server-driven removal — called from DigiaInstance.onCampaignInvalidated. Matches by placement key (which equals the payloadId stored by the server).

Implementation

void removeCampaign(String placementId) {
  _campaigns.removeWhere((key, payload) => key == placementId);
  notifyListeners();
}