Topic constructor

Topic({
  1. required int id,
  2. required String name,
})

Returns a new Topic instance.

Implementation

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