XmlComment class

A XML comment, delimited with <!-- and -->.

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

Inheritance
Annotations
  • @immutable

Constructors

XmlComment(String value)
A XML comment, delimited with <!-- and -->.
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
The contents of the comment.
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}) XmlComment?
Parses a string for a XML comment.
override
parseString(String string, {bool parseCharacterEntities = true, bool trimWhitespace = true, int start = 0, int? stop}) List<XmlComment>?
Parses a string and returns all found XML comments in a list.
override