toString method
Returns this conditional section as an unformatted XML string.
If doubleQuotes
is true
, double-quotes will be used to wrap
all attribute values, otherwise single-quotes will be used.
If encodeCharacterEntities
is true
, text and attribute values
will be parsed and have the characters included in encodeCharacters
encoded as character entities.
If encodeCharacters
is null
, attribute values will be parsed
for less-than (<
), greater-than (>
), ampersand (&
), apostrophe
or single quote ('
) and double-quote ("
). And, XmlText nodes will
be encoded for less-than (<
), greater-than (>
), and ampersand (&
).
Implementation
@override
String toString({
bool encodeCharacterEntities = true,
String? encodeCharacters,
bool doubleQuotes = true,
}) {
final children = this.children.write(
encodeCharacterEntities: encodeCharacterEntities,
encodeCharacters: encodeCharacters,
doubleQuotes: doubleQuotes,
);
return '<![ $condition [$children]]>';
}