getCurrentJuzNumber method

bool getCurrentJuzNumber(
  1. int juzNum
)

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

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

Parameters: juzNum (int): The number of the Juz to compare with the current Juz.

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

Implementation

bool getCurrentJuzNumber(int juzNum) =>
    getJuzByPage(state.currentPageNumber.value).juz - 1 == juzNum;