RaliRoute class
///////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////
Constructors
-
RaliRoute.new({String? id, required String name, required String createdBy, required dynamic routeData, bool isPublic = false, Timestamp? createdAt, List<
String> ? tags}) - //////////// ////////////
-
RaliRoute.fromMap(Map<
String, dynamic> map, String id) -
////////////
////////////
Creates a RaliRoute from a Firestore document map
factory
Properties
- createdAt → Timestamp
-
final
- createdBy → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
////////////
////////////
final
- isPublic → bool
-
final
- name → String
-
final
- routeData → dynamic
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
final
-
final
Methods
-
addTag(
String tag) → RaliRoute - //////////// //////////// Adds a tag to the route
-
copyWith(
{String? name, dynamic routeData, bool? isPublic, List< String> ? tags}) → RaliRoute - Creates a copy of this RaliRoute with optional parameter updates
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeTag(
String tag) → RaliRoute - Removes a tag from the route
-
setPublic(
bool isPublic) → RaliRoute - Sets the route as public or private
- //////////// //////////// Adds a user to the sharedWith list
-
toMap(
) → Map< String, dynamic> - //////////// //////////// Converts RaliRoute to a map for Firestore
-
toString(
) → String -
A string representation of this object.
inherited
- Removes a user from the sharedWith list
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited