StyleRule class abstract

Implementers

Constructors

StyleRule.new({required Selector selector, required Styles styles})
Renders a css rule with the given selector and styles.
const
factory
StyleRule.fontFace({required String family, FontStyle? style, required String url})
Renders a @font-face css rule.
const
factory
StyleRule.import(String url)
Renders a @import url(...) css rule.
const
factory
StyleRule.keyframes({required String name, required Map<String, Styles> styles})
Renders a @keyframes css rule.
const
factory
StyleRule.layer({String? name, required List<StyleRule> styles})
Renders a @layer css rule.
const
factory
StyleRule.media({required MediaQuery query, required List<StyleRule> styles})
Renders a @media css rule.
const
factory
StyleRule.supports({required String condition, required List<StyleRule> styles})
Renders a @supports css rule.
const
factory

Properties

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
toCss([String indent]) String
Returns the rendered css for this rule.
toString() String
A string representation of this object.
inherited

Operators

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