StringExpression class final

A string literal.

Inheritance

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.
no setterinherited
hasQuotes bool
Whether this has quotes.
final
isCalculationSafe bool
Whether this expression can be used in a calculation context.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
span → FileSpan
The source span associated with the node.
no setteroverride
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 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

Static Methods

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