Activity class
A provider that contains all the activities. The ActivityRepository consists of a list of all activities, a map of activities by ID and a map of activities by date.
- Annotations
-
- @Riverpod(keepAlive: true)
Constructors
- Activity()
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
-
build(
) → FutureOr< ActivityRepository> -
cancelSubscription(
) → void -
fetchActivityById(
String id) → void -
Fetch the activity with
idfrom the Firestore database. -
fetchNewActivities(
{DateTime? newLowerBound}) → void -
Fetches activities between
newLowerBoundand the 'old' lowerBound from the Firestore database. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateRepoWithNewActivities(
ActivityRepository repository, Iterable< ActivityModel> newActivities) → ActivityRepository -
Add
newActivitiesto therepository.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited