playSurah method
يقوم بتشغيل سورة كاملة صوتياً بدءًا من الآية الأولى حتى الآية الأخيرة في السورة. يمكن استخدام هذه الدالة لتشغيل أي سورة من القرآن الكريم بالكامل.
surahNumber
رقم السورة التي سيتم تشغيلها (من 1 إلى 114).
يجب أن يكون رقم السورة صحيحاً ومتوفراً في المصحف.
Plays a complete surah audio from the first verse to the last verse in the surah. This function can be used to play any complete surah from the Holy Quran.
surahNumber
The number of the surah to be played (from 1 to 114).
The surah number must be valid and available in the Quran.
مثال للاستخدام / Example usage:
// تشغيل سورة الفاتحة (السورة رقم 1)
// Play Surah Al-Fatiha (Surah number 1)
await quranLibrary.playSurah(surahNumber: 1);
// تشغيل سورة البقرة (السورة رقم 2)
// Play Surah Al-Baqarah (Surah number 2)
await quranLibrary().playSurah(surahNumber: 2);
Implementation
Future<void> playSurah({required int surahNumber}) async =>
await AudioCtrl.instance.playSurah(surahNumber: surahNumber);