BlogPost class

Um post de blog carregado de um arquivo markdown (frontmatter + corpo).

Constructors

BlogPost({required String slug, required String title, required String description, required DateTime date, required String bodyMarkdown, String? subtitle, String? author, String? image, Category? category, List<Tag> tags = const [], bool draft = false, int views = 0})
const

Properties

author → String?
final
bodyMarkdown → String
Corpo do post em Markdown (renderizado para HTML na exibição).
final
category → Category?
Categoria principal (hierárquica). Nula se não classificado.
final
date → DateTime
final
description → String
final
draft → bool
Se true, o post é rascunho e não é publicado/indexado.
final
hashCode → int
The hash code for this object.
no setterinherited
image → String?
final
path → String
Caminho público do post (ex.: /blog/meu-post).
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slug → String
Identificador na URL (geralmente o nome do arquivo sem .md).
final
subtitle → String?
Linha-fina / subtítulo (estilo G1) exibida sob o título. Opcional.
final
tags → List<Tag>
Tags transversais.
final
title → String
final
views → int
Número de acessos (frontmatter views) — usado em "Mais acessados".
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited