getInitialIndex function

dynamic getInitialIndex(
  1. int storyNumber,
  2. List<StoryItem>? storiesMapList
)

Implementation

getInitialIndex(int storyNumber, List<StoryItem>? storiesMapList) {
  int total = 0;
  for (int i = 0; i < storyNumber; i++) {
    total += storiesMapList![i].stories.length;
  }
  return total;
}