currentBannerSequence function

Future<int> currentBannerSequence(
  1. int pos
)

Implementation

Future<int> currentBannerSequence(int pos) async {
  if (_settings?.isFollowLoopSequenceAds ?? true) {
    final prefs = await SharedPreferences.getInstance();
    final curSeq = prefs.getInt('bannerAdsCurSeqPos') ?? -1;
    return curSeq;
  }
  return pos;
}