getCurrentSurahNumber method

bool getCurrentSurahNumber(
  1. int surahNum
)

Checks if the current Surah number matches the specified Surah number.

This method compares the Surah number of the current page with the given Surah number.

Parameters: surahNum (int): The number of the Surah to compare with the current Surah.

Returns: bool: true if the current Surah number matches the specified Surah number, false otherwise.

Implementation

bool getCurrentSurahNumber(int surahNum) =>
    getCurrentSurahByPageNumber(state.currentPageNumber.value).surahNumber -
        1 ==
    surahNum;