QuranRepository class

A repository class for managing Quran-related data.

This class provides methods to fetch, store, and manipulate data related to the Quran. It acts as an intermediary between the data sources (such as APIs or local databases) and the application logic, ensuring that the data is properly handled and formatted before being used in the app.

Constructors

QuranRepository.new()
Factory constructor to return the singleton instance
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getBookmarks() List<BookmarkModel>
Retrieves a list of bookmarks.
getFontsQuran() Future<List>
Fetches a list of Quran fonts.
getLastPage() int?
Retrieves the last page number from the storage.
getQuran() Future<List>
Fetches the Quran data.
getSurahs() Future<Map<String, dynamic>>
Fetches the list of Surahs from the data source.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveBookmarks(List<BookmarkModel> bookmarks) → void
Saves the list of bookmarks to persistent storage.
saveLastPage(int lastPage) → void
Saves the last page number.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

hafsPagesNumber → const int
Quran pages number