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