XmlText class
A plain text value.
This node is should be nested within an element, but the parser doesn't require it.
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- isMarkup → bool
-
Flagged
true
if this node was created as the result of markup that couldn't be parsed.final - 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', bool encodeCharacterEntities = true, String encodeCharacters = '&<>'}) → String -
Returns this node as a formatted string.
override
-
toString(
{bool encodeCharacterEntities = true, String encodeCharacters = '&<>'}) → String -
Returns this nodes plain text value.
override
Operators
-
operator ==(
Object o) → bool -
The equality operator.
override
Static Methods
-
from(
String string, {bool parseCharacterEntities = true, bool isMarkup = false, bool trimWhitespace = true}) → XmlText -
Returns
string
as an XML text node.override -
parseString(
String string, {bool parseCharacterEntities = true, bool trimWhitespace = true, int start = 0, int? stop}) → List< XmlText> ? -
Returns a list of every root level XML text node found in
string
.string
must not benull
.override