DailyTaskModel constructor

DailyTaskModel({
  1. String? id,
  2. required String taskKey,
  3. required String name,
  4. String? description,
  5. required DailyTaskCriteriaType criteriaType,
  6. required int criteriaValue,
  7. required int xpReward,
  8. bool isActive = true,
  9. int currentProgress = 0,
  10. bool isCompleted = false,
  11. bool isClaimed = false,
  12. DateTime? completedAt,
  13. DateTime? createdAt,
})

Implementation

DailyTaskModel({
  this.id,
  required this.taskKey,
  required this.name,
  this.description,
  required this.criteriaType,
  required this.criteriaValue,
  required this.xpReward,
  this.isActive = true,
  this.currentProgress = 0,
  this.isCompleted = false,
  this.isClaimed = false,
  this.completedAt,
  this.createdAt,
});