seekToNextSurah method

Future<void> seekToNextSurah()

ينتقل إلى السورة التالية وبدء تشغيلها صوتياً بالكامل. يتم استخدام هذه الدالة للانتقال السريع للسورة التالية أثناء التشغيل الصوتي. إذا كانت السورة الحالية هي الأخيرة (سورة الناس)، فسيتم العودة إلى السورة الأولى (الفاتحة).

هذه الدالة مفيدة لإنشاء قائمة تشغيل متتالية للسور.

Moves to the next surah and starts playing it completely in audio. This function is used for quick navigation to the next surah during audio playback. If the current surah is the last one (Surah An-Nas), it will return to the first surah (Al-Fatiha).

This function is useful for creating a sequential playlist of surahs.

مثال للاستخدام / Example usage:

// إذا كان يتم تشغيل سورة الفاتحة، سينتقل إلى سورة البقرة
// If Al-Fatiha is playing, it will move to Al-Baqarah
await quranLibrary().seekToNextSurah();

Implementation

Future<void> seekToNextSurah() async =>
    await AudioCtrl.instance.playNextSurah();