Subtopic.from constructor

Subtopic.from({
  1. required int id,
  2. required String name,
  3. required String displayName,
  4. required String fromLanguage,
  5. required String learningLanguage,
})

Returns the new instansce of Subtopic based on arguments.

Implementation

Subtopic.from({
  required this.id,
  required this.name,
  required this.displayName,
  required this.fromLanguage,
  required this.learningLanguage,
});