getVerseCount function
Takes surahNumber
and returns the count of total Verses in the Surah
Implementation
int getVerseCount(int surahNumber) {
if (surahNumber > 114 || surahNumber <= 0) {
throw "No verse found with given surahNumber";
}
return int.parse(surah[surahNumber - 1]['aya'].toString());
}