RouteService class

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

Constructors

RouteService.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

createRoute(String userId, String name, dynamic routeData, {bool isPublic = false, List<String> sharedWith = const [], List<String> tags = const []}) Future<String>
//////////// //////////// Creates a new route in Firestore
deleteRoute(String routeId) Future<void>
Deletes a route
getPublicRoutes() Future<List<RaliRoute>>
//////////// //////////// Gets all public routes
getRoute(String routeId) Future<RaliRoute?>
Gets a route by ID
getRoutesByUser(String userId) Future<List<RaliRoute>>
Gets routes created by a specific user
getRoutesSharedWith(String userId) Future<List<RaliRoute>>
Gets routes shared with a specific user
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setRoutePublic(String routeId, bool isPublic) Future<void>
Makes a route public or private
shareRouteWithUsers(String routeId, List<String> userIds) Future<void>
//////////// //////////// Shares a route with specific users
toString() String
A string representation of this object.
inherited
updateRoute(String routeId, Map<String, dynamic> data) Future<void>
Updates route data

Operators

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