UsersService class

Service to handle users api requests

Constructors

UsersService.new({required ApiClient apiClient, FirebaseCrashlytics? crashlytics})
Constructor for the UsersService

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

createUser(User data) Future<void>
Create a user.
getBusinessUnitsWithUser(String userId) Future<List<BusinessUnit>>
Get all the list of BusinessUnit from the User.
getDepartmentsWithUser(String userId) Future<List<Department>>
Get all the list of Department from the User.
getDepotsWithUser(String userId) Future<List<Depot>>
Get all the list of Depot from the User.
getPositionsWithUser(String userId) Future<List<Position>>
Get all the list of Position from the User.
getScannedQrCodesWithUser(String userId) Future<List<ScannedQrCode>>
Get all the list of ScannedQrCode from the User.
getStatusesWithUser(String userId) Future<List<Status>>
Get all the list of Status from the User.
getUser(String userId) Future<User>
Get a user by id.
getUsers() Future<List<User>>
Get all users.
getUsersByBusinessUnit(int businessUnitId) Future<List<User>>
Get all users by business unit.
getUsersByRole(String userRole) Future<List<User>>
Get all user by role.
getUsersWithCreator(String creatorId) Future<List<User>>
Get all the list of User from the User.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateUser(User data) Future<void>
Updates a user.

Operators

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