getNextVerse method

QuranVerse? getNextVerse(
  1. int surah,
  2. int ayah
)

Implementation

QuranVerse? getNextVerse(int surah, int ayah) {
  final verses = getSurah(surah);
  if (ayah >= 1 && ayah < verses.length) {
    return verses[ayah]; // 0-indexed internally
  }
  return null;
}