RolesService class

Service to handle roles api requests

Constructors

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

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

createRole(UserRole data) Future<void>
Creates a role.
getRole(int roleId) Future<UserRole>
Get a role by id.
getRoles() Future<List<UserRole>>
Get all roles.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateRole(UserRole data) Future<void>
Updates a role.

Operators

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