TomlLiteralString constructor
TomlLiteralString(
- String value
Creates a new literal string value with the given contents.
Throws a ArgumentError when the given value cannot be encoded as a literal string (see canEncode).
Implementation
factory TomlLiteralString(String value) {
if (!canEncode(value)) {
throw ArgumentError('Invalid literal string: $value');
}
return TomlLiteralString._fromEncodable(value);
}