PersonalStatistics class
A widget that displays the personal statistics of a user in the profile screen.
It fetches and shows the number of tasks completed in the last 7 and 30 days, the average number of tasks completed per day, the total number of tasks completed, and the average time to complete a task.
Requires a ProfileScreen and the userId
of the user whose statistics are shown.
Constructors
- PersonalStatistics({dynamic key, required dynamic widget, required String userId})
-
Creates a PersonalStatistics widget.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- widget → dynamic
-
The parent profile screen used to access Firestore instance.
final
Methods
-
build(
dynamic context) → dynamic -
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