getPlaceOfRevelation function
Takes surahNumber
and returns the place of revelation (Makkah / Madinah) of the surah
Implementation
String getPlaceOfRevelation(int surahNumber) {
if (surahNumber > 114 || surahNumber <= 0) {
throw "No Surah found with given surahNumber";
}
return surah[surahNumber - 1]['place'].toString();
}