StringLiteral class final

A double-quoted string literal: { "Hello" }.

value holds the raw, escape-preserved source content. Escape sequences (\\, \", \uXXXX, \UXXXXXX) appear as their literal characters. The runtime resolver decodes them via unescapeFluentString when the value is rendered into a pattern.

Inheritance

Constructors

StringLiteral(String value, {Span? span})
Wraps the raw, escape-preserved value.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
span Span?
Source range this node covers; null when spans were off.
final
value String
Raw string content between the quotes; escapes preserved.
final

Methods

clone() StringLiteral
Deep clone of this node.
override
equals(FluentNode other, {bool ignoreSpans = true}) bool
Structural equality.
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