Literal constructor
- String value
Creates a new literal.
The value
must not contain escape sequences.
Implementation
factory Literal(String value) {
if (value.contains('\x1B')) {
throw ArgumentError.value(
value,
'value',
'must not contain escape sequences',
);
}
return Literal._(value);
}