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