getAllSurahs method

List<String> getAllSurahs({
  1. bool isArabic = true,
})

getAllSurahs يعيد قائمة بأسماء السور.

getAllSurahs returns list of all Quran surahs' names

Implementation

List<String> getAllSurahs({bool isArabic = true}) => quranCtrl.surahs
    .map((surah) =>
        isArabic ? 'سورة ${surah.nameAr}' : 'Surah ${surah.nameEn}')
    .toList();