StyleEntry class

An inline style tag.

StyleEntry('body { margin: 0; }', id: 'reset-styles')
Inheritance

Constructors

StyleEntry(String content, {String? id, String? media, HeadLayer layer = HeadLayer.component})

Properties

category HeadCategory
Category for grouping related tags.
finalinherited
content String
final
hashCode int
The hash code for this object.
no setterinherited
id String?
final
key String
Unique identifier for deduplication. Tags with the same key from higher layers override lower layers.
finalinherited
layer HeadLayer
Priority layer for resolution.
finalinherited
media String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWithLayer(HeadLayer layer) StyleEntry
Creates a copy with a different layer.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toHtml() String
Renders this entry to an HTML string.
override
toString() String
A string representation of this object.
inherited

Operators

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