DataHandlerUserRepo class

A repository class that handles user-related data operations across both the API and local database.

The DataHandlerUserRepo provides methods for user registration, login, and fetching user data, utilizing both the API and local storage.

Constructors

DataHandlerUserRepo(ApiConnector _apiConnector, DatabaseWrapper _databaseWrapper)
Constructs an instance of DataHandlerUserRepo.

Properties

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

Methods

getUser({required String userName, required String hashedPassword}) Future<User?>
Logs in a user and retrieves their user data if the login is successful.
getUserWithID({required User user}) Future<User>
Retrieves a User object, including the user's ID, based on the provided User object.
login({required String userName, required String hashedPassword}) Future<ApiReturn>
Logs in a user using the API.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerUser({required String userName, required String hashedPassword}) Future<ApiReturn>
Registers a new user using the API.
toString() String
A string representation of this object.
inherited

Operators

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