next method

dynamic next()

Implementation

next() {
  for (int i = currentStep; i < onboardItemList.length; i++) {
    if (onboardItemList[i] != null) {
      currentStep++;
      return onboardItemList[i];
    } else {
      currentStep++;
    }
  }
}