utils/stats library
Functions
-
getAverageCompletionTime(
dynamic firestore, String userId) → Future< double> -
Returns the average completion time (in hours) for all completed tasks
by the given
userId
. -
getAverageTasksPerDay(
dynamic firestore, String userId) → Future< double> -
Returns the average number of tasks completed per day by the given
userId
. -
getTasksCompletedInLastDays(
dynamic firestore, String userId, int days) → Future< int> -
Returns the number of tasks completed by the given
userId
in the lastdays
. -
getTotalNumberOfTasks(
dynamic firestore, String userId) → Future< int> -
Returns the total number of completed tasks by the given
userId
.