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, {bool useLogin = false}) Future<Chapter?>
Gets the chapter specified by the UUID [...]
getCovers(String mangaUuid, {bool useLogin = false}) Future<List<String>?>
Gets 10 of available cover images for a manga [...]
getGroup(String uuid, {bool useLogin = false}) Future<Group?>
Gets information about a Scanlation Group [...]
getManga(String uuid, {bool appendChapters = false, List<String> translatedLang = const [], bool useLogin = false}) Future<Manga?>
Gets information about manga [...]
getMangaFeed() Future<List<Chapter>>
Returns the latest chapters of the currently logged in user's followed manga [...]
getUser(String uuid, {bool useLogin = false}) Future<User?>
Gets user [...]
login(String username, String password) Future<void>
Gets the JWT and refresh token through the API [...]
logout() Future<void>
Invalidates current sesssion
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 [...]
searchGroups({bool useLogin = false, String name = '', List<String> ids = const []}) Future<List<Group>>
Searches for groups with the given parameters [...]
solveCaptcha(String captchaResult) Future<void>
Sends the captcha result to the API server [...]
toString() String
A string representation of this object. [...]
inherited

Operators

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