AchievementSchema constructor

AchievementSchema({
  1. required String name,
  2. required String code,
  3. required String description,
  4. required int points,
  5. required AchievementType type,
  6. required 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,
  required this.target,
  required this.total,
  required this.rewards,
});