MediaQuery class

MediaQuery grammar:

 : [ONLY | NOT]? S* media_type S* [ AND S* media_expression ]*
 | media_expression [ AND S* media_expression ]*
media_type
 : IDENT
media_expression
 : '(' S* media_feature S* [ ':' S* expr ]? ')' S*
media_feature
 : IDENT
Inheritance

Constructors

MediaQuery(int _mediaUnary, Identifier? _mediaType, List<MediaExpression> expressions, SourceSpan? span)

Properties

expressions List<MediaExpression>
final
hashCode int
The hash code for this object.
no setterinherited
hasMediaType bool
no setter
hasUnary bool
no setter
mediaType String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
span → SourceSpan
The source code this TreeNode represents.
no setteroverride
unary String
no setter

Methods

clone() MediaQuery
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDebugString() String
A multiline string showing the node and its children.
inherited
toString() String
A string representation of this object.
inherited
visit(VisitorBase visitor) → dynamic
Classic double-dispatch visitor for implementing passes.
override

Operators

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