DepartmentsService class
A repository that handles departments api requests
Constructors
- DepartmentsService.new({required ApiClient apiClient, FirebaseCrashlytics? crashlytics})
- Constructor for the DepartmentsService
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
-
createDepartment(
Department department) → Future< void> - Create a department
-
getDepartment(
int departmentId) → Future< Department> - Get a department by id
-
getDepartments(
) → Future< List< Department> > - Get all departments
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateDepartment(
Department department) → Future< void> - Update a department
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited