MDClient class Null safety

Main class containing all the communication with the API

Constructors

MDClient({String token = '', String refresh = ''})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
refresh String
Refresh token for refreshing the auth token
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
token String
Token for API authentication
read / write

Methods

getChapter(String uuid) Future<Chapter?>
Gets the chapter specified by the UUID [...]
getCovers(String mangaUuid) Future<List<String>?>
Gets 10 of available cover images for a manga [...]
getMangaInfo(String uuid, {bool appendChapters = false, List<String> translatedLang = const []}) Future<Manga?>
Gets information about manga [...]
login(String username, String password) → void
Gets the JWT and refresh token through the API [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
refreshToken() → void
Refreshes the auth token using the saved refresh token
Search for manga [...]
solveCaptcha() → void
toString() String
A string representation of this object. [...]
inherited

Operators

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