seekToPreviousSurah method

Future<void> seekToPreviousSurah()

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

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

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

This function is useful for backward navigation in the surah playlist.

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

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

Implementation

Future<void> seekToPreviousSurah() async =>
    await AudioCtrl.instance.playPreviousSurah();