ImageBlock class

Imagem com legenda e crédito (estilo G1). Renderiza como <figure> para permitir legenda semântica — o renderer Markdown deixa HTML de bloco passar.

Inheritance

Constructors

ImageBlock(String url, {String? caption, String? credit, String? alt})
const
ImageBlock.fromJson(Map<String, Object?> j)
factory

Properties

alt String?
final
caption String?
final
credit String?
final
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 setteroverride
url String
final

Methods

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

Operators

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