Raw class

Trusted raw HTML passthrough sugar.

Inserts raw HTML without entity escaping.

Security Warning

Never pass untrusted or user-supplied input to Raw. In the browser, this sets .innerHTML directly on a <span> wrapper element and bypasses sanitization.

const mathSnippet = Raw('<math><semantics><mrow><mi>x</mi><mo>+</mo><mn>1</mn></mrow></semantics></math>');
Inheritance

Constructors

Raw(String html)
Creates a raw HTML passthrough descriptor with html.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
html String
The raw HTML string to insert.
finalinherited
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