BlogPost constructor

const BlogPost({
  1. required String slug,
  2. required String title,
  3. required String description,
  4. required DateTime date,
  5. required String bodyMarkdown,
  6. String? subtitle,
  7. String? author,
  8. String? image,
  9. Category? category,
  10. List<Tag> tags = const [],
  11. bool draft = false,
  12. int views = 0,
})

Implementation

const BlogPost({
  required this.slug,
  required this.title,
  required this.description,
  required this.date,
  required this.bodyMarkdown,
  this.subtitle,
  this.author,
  this.image,
  this.category,
  this.tags = const [],
  this.draft = false,
  this.views = 0,
});