fetchSurahs method
Implementation
Future<void> fetchSurahs() async {
try {
isLoading(true);
final jsonResponse = await _quranRepository.getSurahs();
final response = SurahResponseModel.fromJson(jsonResponse);
surahsList.assignAll(response.surahs);
} catch (e) {
log('Error fetching data: $e');
} finally {
isLoading(false);
}
update();
}