incrementIntraSequence function

dynamic incrementIntraSequence()

Implementation

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