Stylesheet class final

A Sass stylesheet.

This is the root Sass node. It contains top-level statements.

Inheritance

Constructors

Stylesheet(Iterable<Statement> children, FileSpan span)
Stylesheet.parse(String contents, Syntax syntax, {Object? url, Logger? logger})
Parses a stylesheet from contents according to syntax.
factory
Stylesheet.parseCss(String contents, {Object? url, Logger? logger})
Parses a plain CSS stylesheet from contents.
factory
Stylesheet.parseSass(String contents, {Object? url, Logger? logger})
Parses an indented-syntax stylesheet from contents.
factory
Stylesheet.parseScss(String contents, {Object? url, Logger? logger})
Parses an SCSS stylesheet from contents.
factory

Properties

children List<Statement>
The child statements of this statement.
finalinherited
forwards List<ForwardRule>
All the @forward rules that appear in this stylesheet.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
span → FileSpan
The source span associated with the node.
final
uses List<UseRule>
All the @use rules that appear in this stylesheet.
no setter

Methods

accept<T>(StatementVisitor<T> visitor) → T
Calls the appropriate visit method on visitor.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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