StringExpression class Null safety AST

A string literal.

Implemented types
Annotations

Constructors

StringExpression(Interpolation text, {bool quotes = false})
StringExpression.plain(String text, FileSpan span, {bool quotes = false})
Returns a string expression with no interpolation.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
hasQuotes bool
Whether this has quotes.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
span FileSpan
The source span associated with the node. [...]
read-only, override
text Interpolation
Interpolation that, when evaluated, produces the contents of this string. [...]
final

Methods

accept<T>(ExpressionVisitor<T> visitor) → T
Calls the appropriate visit method on visitor.
override
asInterpolation({bool static = false, int? quote}) Interpolation
Interpolation that, when evaluated, produces the syntax of this string. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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

Static Methods

quoteText(String text) String
Returns Sass source for a quoted string that, when evaluated, will have text as its contents.