Topic.from constructor

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

Returns the new instance of Topic based on arguments.

Implementation

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