A mixin that contains functions for managing activity participants.
The functions are used in the FirestoreService class. You can call functions from this mixin as follows:
ref.read(firestoreServiceProvider).getParticipants(id);
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- instance ↔ FirebaseFirestore
-
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addUserToParticipants(
String activityID, String userId, ParticipantType type) → Future< void> - Adds a user to the participants of an activity.
-
getParticipants(
String id) → Future< Map< String, dynamic> ?> -
Returns the participants of an activity with the given
id. -
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