getQuran method

Future<List> getQuran()

Fetches the Quran data.

This method retrieves a list of Quran data asynchronously.

Returns a Future that completes with a List of dynamic objects representing the Quran data.

Throws an Exception if the data retrieval fails.

Implementation

Future<List<dynamic>> getQuran() async {
  String content = await rootBundle
      .loadString('packages/quran_library/assets/jsons/quran_hafs.json');
  return jsonDecode(content);
}