EmbedBlock class

Conteúdo incorporado (vídeo do YouTube, tweet, iframe). O html é inserido como bloco — use para players e widgets que um post de portal costuma ter.

Inheritance

Constructors

EmbedBlock(String html)
const
EmbedBlock.fromJson(Map<String, Object?> j)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
html String
final
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

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