RouteService class
///////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////
Constructors
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> 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
- 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
- //////////// //////////// 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