XmlCdata class

A CDATA Section.

CDATA sections are used to escape blocks of text which contain characters that would otherwise be recognized as markup.

See: https://www.w3.org/TR/xml/#sec-cdata-sect

Inheritance
Annotations
  • @immutable

Constructors

XmlCdata(String value)
A CDATA Section.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
Plain text value.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFormattedString({int nestingLevel = 0, String indent = '\t'}) String
Returns this node as a formatted string.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object o) bool
The equality operator.
override

Static Methods

from(String string, {bool trimWhitespace = true}) XmlCdata?
Returns string as an CDATA node. string must not be null.
override
parseString(String string, {bool trimWhitespace = true, int start = 0, int? stop}) List<XmlCdata>?
Returns every CDATA section found in string in a list. string must not be null.
override