PositionsService class
Service to handle positions api requests
Constructors
- PositionsService.new({required ApiClient apiClient, FirebaseCrashlytics? crashlytics})
- Constructor for the PositionsService
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
-
createPosition(
Position data) → Future< void> - Creates a position
-
getAdminsPosition(
) → Future< List< Position> > - Get all admins position
-
getPosition(
int positionId) → Future< Position> - Get a position by id
-
getPositions(
) → Future< List< Position> > - Get all positions
-
getUsersPosition(
) → Future< List< Position> > - Get all users position
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updatePosition(
Position data) → Future< void> - Updates a position
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited