UserApi class abstract

Implementers

Constructors

UserApi([ApiClient? apiClient])

Properties

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

Methods

checkTokenValidity(String userId, String token) Future<bool?>
Check token validity for a user.
createOrModifyUser(User user) Future<User?>
Create a new user or modify an existing one.
createToken(String userId, {Duration validity}) Future<String?>
Create a token for a user.
deleteUser(String userId) Future<String?>
Delete an existing user.
filterUsers(Filter<User> filter, {String? nextUserId, int? limit}) Future<PaginatedListUser?>
Load users from the database by filtering them using the provided Filter.
getLoggedUser() Future<User?>
Get the details of the logged User.
getUser(String userId) Future<User?>
Get a User by id.
getUserByEmail(String email) Future<User?>
Get a User by email.
matchUsers(Filter filter) Future<List<String>?>
Load user ids from the database by filtering them using the provided Filter.
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