MediaQuery class Null safety

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.
read-only, inherited
hasMediaType bool
read-only
hasUnary bool
read-only
mediaType String
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
span SourceSpan
The source code this TreeNode represents.
read-only, override
unary String
read-only

Methods

clone() MediaQuery
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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