User class

Constructors

User(int id, String _name, String _email, List<String> _role, KuebikoHttpClient _httpClient, CacheController _cacheController)

Properties

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

Methods

delete(String password) → void
finishedBooks() Future<List<Book>>
getEmail() String
getName() String
getRoles() List<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readingBooks() Future<List<Book>>
tokenDelete(int tokenId) → void
toString() String
A string representation of this object.
inherited
unreadBooks() Future<List<Book>>
update(String password) → void

Operators

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

Static Methods

create(String email, String name, String password, List<String> role, String anilistName, String anilistToken, KuebikoHttpClient httpClient, CacheController cacheController) Future<User>
currentUser(KuebikoHttpClient httpClient, CacheController cacheController) Future<User>
getAll(KuebikoHttpClient httpClient, CacheController cacheController) Future<List<User>>