StyleNode class

Style element helper — emits <style>css</style>.

In the browser (mount), creates a <style> element containing css. If bloomStyleNonce is configured, it is attached as the nonce attribute for Content Security Policy (CSP) compliance.

In SSR (renderToHtml), outputs <style>css</style> with any closing </ sequences neutralized to prevent stylesheet breakout attacks.

Usually created using the DSL sugar Style.

Inheritance
Implementers

Constructors

StyleNode(String css)
Creates a style element descriptor with raw css.
const

Properties

css String
The raw CSS stylesheet content.
final
hashCode int
The hash code for this object.
no setterinherited
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