Blog constructor

Blog({
  1. required int id,
  2. required String title,
  3. required String content,
  4. required int createTime,
  5. required Category category,
  6. required String author,
  7. String? thumbnail,
  8. required String dateString,
  9. required List<Tags> tags,
  10. String? aliasString,
})

Implementation

Blog({
  required this.id,
  required this.title,
  required this.content,
  required this.createTime,
  required this.category,
  required this.author,
  this.thumbnail,
  required this.dateString,
  required this.tags,
  this.aliasString,
});