CSSRule class

CSS rule representation.

Constructors

CSSRule({StyleSheetId? styleSheetId, required SelectorList selectorList, required StyleSheetOrigin origin, required CSSStyle style, List<CSSMedia>? media, List<CSSContainerQuery>? containerQueries, List<CSSSupports>? supports, List<CSSLayer>? layers, List<CSSScope>? scopes})
CSSRule.fromJson(Map<String, dynamic> json)
factory

Properties

containerQueries List<CSSContainerQuery>?
Container query list array (for rules involving container queries). The array enumerates container queries starting with the innermost one, going outwards.
final
hashCode int
The hash code for this object.
no setterinherited
layers List<CSSLayer>?
Cascade layer array. Contains the layer hierarchy that this rule belongs to starting with the innermost layer and going outwards.
final
media List<CSSMedia>?
Media list array (for rules involving media queries). The array enumerates media queries starting with the innermost one, going outwards.
final
origin StyleSheetOrigin
Parent stylesheet's origin.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopes List<CSSScope>?
@scope CSS at-rule array. The array enumerates @scope at-rules starting with the innermost one, going outwards.
final
selectorList SelectorList
Rule selector data.
final
style CSSStyle
Associated style declaration.
final
styleSheetId StyleSheetId?
The css style sheet identifier (absent for user agent stylesheet and user-specified stylesheet rules) this rule came from.
final
supports List<CSSSupports>?
@supports CSS at-rule array. The array enumerates @supports at-rules starting with the innermost one, going outwards.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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