UserRepository class Null safety

Implementation of IUserRepository interface

Inheritance

Constructors

UserRepository()

Properties

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<AppUser>
Get the user information and return it as AppUser
override
getUserByToken(String accessToken) Future<AppUser>
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>
Signout current 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