CSSMediaRule class

The interface represents a single CSS @media rule.

CSSRule

CSSGroupingRule

CSSConditionRule

CSSMediaRule

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

CSSMediaRule()
factory

Properties

conditionText String

Available on CSSConditionRule, provided by the PropsCSSConditionRule extension

no setter
cssRules CSSRuleList

Available on CSSGroupingRule, provided by the PropsCSSGroupingRule extension

no setter
cssText String

Available on CSSRule, provided by the PropsCSSRule extension

getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
media MediaList

Available on CSSMediaRule, provided by the PropsCSSMediaRule extension

no setter
parentRule CSSRule?

Available on CSSRule, provided by the PropsCSSRule extension

no setter
parentStyleSheet CSSStyleSheet?

Available on CSSRule, provided by the PropsCSSRule extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type int

Available on CSSRule, provided by the PropsCSSRule extension

no setter

Methods

deleteRule(int index) → void

Available on CSSGroupingRule, provided by the PropsCSSGroupingRule extension

insertRule(String rule, [int? index = 0]) int

Available on CSSGroupingRule, provided by the PropsCSSGroupingRule extension

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