incrementBannerSequence function

Future<void> incrementBannerSequence()

Implementation

Future<void> incrementBannerSequence() async {
  // Obtain shared preferences.
  if (_settings?.isFollowLoopSequenceAds ?? true) {
    final prefs = await SharedPreferences.getInstance();
    final curSeq = prefs.getInt('bannerAdsCurSeqPos') ?? -1;
    await prefs.setInt('bannerAdsCurSeqPos', curSeq + 1);
  }
  // _settings?.adSetting?.bannerAdsStep = (_settings?.adSetting?.bannerAdsStep ?? 0) + 1;
}