getSurahDataByAyahUQ method

SurahModel getSurahDataByAyahUQ(
  1. int ayah
)

Retrieves the Surah data for a given unique Ayah number.

This method returns the SurahModel of the Surah that contains the Ayah with the specified unique number.

Parameters: ayah (int): The unique number of the Ayah for which to retrieve the Surah data.

Returns: SurahModel: The SurahModel representing the Surah containing the Ayah with the given unique number.

Implementation

SurahModel getSurahDataByAyahUQ(int ayah) => state.surahs
    .firstWhere((s) => s.ayahs.any((a) => a.ayahUQNumber == ayah));