PostBlock class abstract

Bloco de conteúdo de um post rico (estilo G1). Cada tipo de bloco (parágrafo, subtítulo, imagem, citação, lista, embed, divisor) é uma subclasse com seu próprio arquivo. Um bloco sabe se serializar para JSON (persistência estruturada) e para Markdown (render via MarkdownRenderer).

Implementers

Constructors

PostBlock()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
Discriminador usado no JSON ({"type": ...}) e pela fábrica.
no setter

Methods

data() Map<String, Object?>
Representação serializável (sem o type, que é injetado por toJson).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
toMarkdown() String
Markdown equivalente — funil único de renderização do corpo do post.
toString() String
A string representation of this object.
inherited

Operators

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