CurrentCourse.from constructor

CurrentCourse.from({
  1. required String id,
  2. required String title,
  3. required String fromLanguage,
  4. required String leraningLanguage,
  5. required int numberOfLearnedWords,
  6. required int numberOfWords,
  7. required int numberOfSentences,
  8. required int xp,
  9. required int crowns,
  10. required int extraCrowns,
  11. required SkillBook skillBook,
})

Returns the new instance of CurrentCourse based on arguments.

Implementation

CurrentCourse.from({
  required this.id,
  required this.title,
  required this.fromLanguage,
  required this.leraningLanguage,
  required this.numberOfLearnedWords,
  required this.numberOfWords,
  required this.numberOfSentences,
  required this.xp,
  required this.crowns,
  required this.extraCrowns,
  required this.skillBook,
});