InnerHtmlAttribute class

Injects raw HTML into an element via HTMLElement.setHTMLUnsafe.

Used by ElementBuilder.innerHTML to render pre-parsed HTML content — for example, Markdown converted to HTML by pulsar_content.

Safety

setHTMLUnsafe bypasses Pulsar's normal child normalization. Only use this with trusted HTML sources — content parsed from Markdown files, never with raw user input.

When InnerHtmlAttribute is present on an element, its children list is ignored. The raw HTML becomes the entire content of the element.

Inheritance

Constructors

InnerHtmlAttribute(String html)
const

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

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