PersonalStatistics constructor

const PersonalStatistics({
  1. dynamic key,
  2. required dynamic widget,
  3. required String userId,
})

Creates a PersonalStatistics widget.

The widget must not be null and is used to access Firestore. The userId must be a valid user ID.

Implementation

const PersonalStatistics({
  super.key,
  required this.widget,
  required String userId,
}) : _userId = userId;