UserService class

HTTP API service for user-profile endpoints.

Provides authenticated calls for fetching the current driver's profile. This is a low-level service — callers should use UserRepository rather than depending on this class directly.

Constructors

UserService({required Dio authenticatedDio})
const

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

getDummyUser() Future<Response>
Returns a stub user response for development, without hitting the network.
getUser() Future<Response>
Fetches the authenticated driver's profile from GET /api/user.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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