setPromoSources method
Future<void>
setPromoSources(
{ - List<AppInUse> promoSources = const [],
- int timelinePromoFrequency = 5,
})
Implementation
Future<void> setPromoSources({
List<AppInUse> promoSources = const [],
int timelinePromoFrequency = 5,
}) async {
logger.t("Setting Promo Sources");
this.promoSources = promoSources;
this.timelinePromoFrequency = timelinePromoFrequency;
try {
for (var appInUse in promoSources) {
promoEndpoints[appInUse] = AppProperties.getAppSourceUrl(appInUse);
}
} catch (e) {
logger.e(e.toString());
}
}