currentRewardSequence function

Future<int> currentRewardSequence(
  1. int pos
)

Implementation

Future<int> currentRewardSequence(int pos) async {
  // Obtain shared preferences.
  if (_settings?.isFollowLoopSequenceAds ?? true) {
    final prefs = await SharedPreferences.getInstance();
    final int? counter = prefs.getInt('rewardAdsCurSeqPos');
    return counter ?? 0;
  }

  return pos;
}