UserService class

///////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////

Constructors

UserService.new()
//////////// ////////////

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

addSavedDestination(String uid, Map<String, dynamic> destinationData) Future<void>
//////////// //////////// Adds a saved destination for a user
addSavedRoute(String uid, String routeId) Future<void>
//////////// //////////// Adds a saved route reference for a user
clearCache() → void
Clears the user cache
createUser(RaliUser user) Future<void>
//////////// //////////// Creates a new user document in Firestore with transaction safety
dispose() → void
Dispose resources
getPreferences(String uid) Future<Map<String, dynamic>?>
Gets user preferences
getUser(String uid) Future<RaliUser?>
Gets a user by their UID with caching support
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeSavedDestination(String uid, String destinationName) Future<void>
Removes a saved destination for a user
removeSavedRoute(String uid, String routeId) Future<void>
Removes a saved route reference for a user
syncUserData() Future<void>
//////////// //////////// Syncs cached user data with Firestore when back online
toString() String
A string representation of this object.
inherited
updatePreferences(String uid, Map<String, dynamic> preferences) Future<void>
//////////// //////////// Updates user preferences
updateUser(String uid, Map<String, dynamic> data) Future<void>
Updates user data with merge semantics and tracks changes for offline support

Operators

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