Course.from constructor

Course.from({
  1. required String id,
  2. required String title,
  3. required String fromLanguage,
  4. required String learningLanguage,
  5. required int xp,
  6. required int crowns,
})

Returns the new instance of Course based on arguments.

Implementation

Course.from({
  required this.id,
  required this.title,
  required this.fromLanguage,
  required this.learningLanguage,
  required this.xp,
  required this.crowns,
});