ActivityFunctions class abstract mixin

A mixin that contains functions for activities.

The functions are used in the FirestoreService class. You can call functions from this mixin as follows:

ref.read(firestoreServiceProvider).activityStream();
Implementers

Constructors

ActivityFunctions()

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

activitiesBetweenTwoDates(DateTime lowerBound, DateTime upperBound) Future<List<ActivityModel>>
Returns a list of activities that are happening between two dates.
activityStream() Stream<QuerySnapshot<ActivityModel>>
Returns a stream of activities that are happening this month.
deleteActivity(String id) Future<CreateActivityResult>
Deletes an activity with the given id.
getActivity(String id) Future<ActivityModel?>
Returns an activity with the given id.
getEmptyDocumentID() String
Returns an empty document ID.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setActivity(ActivityModel data) Future<CreateActivityResult>
Sets an activity with the given data.
toString() String
A string representation of this object.
inherited
updateActivity(ActivityModel data) Future<CreateActivityResult>
Updates an activity with the given data.

Operators

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