AchievementSchema constructor

AchievementSchema({
  1. required String name,
  2. required String code,
  3. required String description,
  4. required int points,
  5. required AchievementType type,
  6. String? target,
  7. required int total,
  8. required AchievementRewardsSchema rewards,
})

Returns a new AchievementSchema instance.

Implementation

AchievementSchema({
  required this.name,
  required this.code,
  required this.description,
  required this.points,
  required this.type,
  this.target,
  required this.total,
  required this.rewards,
});