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

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 id from the Firestore database.
fetchNewActivities({DateTime? newLowerBound}) → void
Fetches activities between newLowerBound and 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 newActivities to the repository.

Operators

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