Discussion constructor

const Discussion({
  1. required bool hideFromTrending,
  2. required int id,
  3. required bool pinned,
  4. required Post post,
  5. required bool subscribed,
  6. required List<String> tags,
  7. required String title,
  8. required int topLevelCommentCount,
  9. required int viewCount,
})

Implementation

const factory Discussion({
  required bool hideFromTrending,
  required int id,
  required bool pinned,
  required Post post,
  required bool subscribed,
  required List<String> tags,
  required String title,
  required int topLevelCommentCount,
  required int viewCount,
}) = _Discussion;