getQuranSurahs function
Returns the list of Surahs in the Quran offset - offset ayahs in a juz by the given number limit - This is the number of ayahs that the response will be limited to.
Implementation
Future<List<Surah>> getQuranSurahs({
int? offset,
int? limit,
}) async {
final res = await get('/surah', query: {'limit': limit, 'offset': offset});
return (res['data'] as List).map<Surah>((e) => Surah.fromMap(e as Map<String, dynamic>)).toList();
}