CampaignStore class

In-memory cache of campaigns keyed by campaignKey.

Dart port of the Android CampaignStore. Populated once during DigiaInstance.initialize and consulted on every CEP-triggered campaign. Not persisted across launches — the SDK refetches on each cold start.

Constructors

CampaignStore()

Properties

all → List<CampaignModel>
All cached campaigns. Used by host/dev tooling to enumerate campaigns.
no setter
hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
find(String campaignKey) → CampaignModel?
findById(String campaignId) → CampaignModel?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
populate(List<CampaignModel> list) → void
Replaces the entire cache with list, keyed by campaignKey.
toString() → String
A string representation of this object.
inherited

Operators

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