incrementRewardSequence function

dynamic incrementRewardSequence()

Implementation

incrementRewardSequence() async {
  // Obtain shared preferences.
  if (_settings?.isFollowLoopSequenceAds ?? true) {
    final prefs = await SharedPreferences.getInstance();
    final curSeq = prefs.getInt('rewardAdsCurSeqPos') ?? 0;
    await prefs.setInt('rewardAdsCurSeqPos', curSeq + 1);
  }
}