UserService class Null safety

User data source implementation of IUserService using HttpClient

Inheritance
Implemented types

Constructors

UserService()

Properties

client Client
late, final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

forgotPassword({required String email}) Future<void>
Send to email a user forget email
override
getUserById(String userId) Future<AppUserModel>
override
getUserByToken(String accessToken) Future<AppUserModel>
Get the user information and return it as AppUser
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
signIn({required String username, required String password, bool? rememberMe}) Future<String>
Sign in with username and password and return an access token as String
override
signOut(String userId) Future<void>
Sign out user
override
signUp({required String fullName, required String username, required String password}) Future<String>
Sign up with username and password and return an access token as String
override
toString() String
A string representation of this object. [...]
inherited

Operators

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