playWordAudio method
تشغيل صوت كلمة واحدة. إذا كانت نفس الكلمة قيد التشغيل، يتم إيقافها.
Play audio for a single word. If the same word is playing, it will stop.
مثال / Example:
await QuranLibrary().playWordAudio(
ref: const WordRef(surahNumber: 1, ayahNumber: 1, wordNumber: 1),
);
Implementation
Future<void> playWordAudio({required WordRef ref}) async {
await WordInfoCtrl.instance.playWordAudio(ref);
}