skipNext method

void skipNext()

Skip to the next ayah / surah.

Implementation

void skipNext() {
  final s = state.value;
  final meta = QuranMetadata.instance;
  final surahInfo = meta.surahByNumber(s.surah);
  if (surahInfo == null) return;

  if (s.ayah < surahInfo.ayahCount) {
    playAyah(s.surah, s.ayah + 1);
  } else if (s.surah < 114) {
    playAyah(s.surah + 1, 1);
  }
}