HadithService class

Constructors

HadithService()

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

getBook(Collection collection, int bookNumber) Future<Book>
Fetches a specific book by its number from a collection.
getBooks(Collection collection) Future<List<Book>>
Loads books data for the specified collection.
getBookURL(Collection collection, int bookNumber) String
Returns the URL for a specific book in a collection.
getCollectionData(Collection collection, Languages language) Future<List<CollectionData>>
Takes collection and language and returns the collection data for that language.
getCollections() Future<List<Collection>>
Returns a list of all available collections.
getCollectionURL(Collection collection) String
Returns the URL for a specific collection.
getHadith(Collection collection, int bookNumber, int hadithNumber) Future<Hadith?>
Fetches a specific hadith by book number and hadith number.
getHadiths(Collection collection, int bookNumber) Future<List<Hadith>>
Fetches all hadiths for a specific book in a collection.
getHadithURL(Collection collection, int bookNumber, int hadithNumber) String
Returns the URL for a specific hadith in a collection.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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