XmlAttribute class

An attribute of a XML element.

Annotations
  • @immutable

Constructors

XmlAttribute(String name, String value)
An attribute of a XML element.
const

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString({bool doubleQuotes = true, bool encodeCharacterEntities = true, String encodeCharacters = '&<>"\''}) String
A string representation of this object.
override

Operators

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

Static Methods

from(String string, {bool parseCharacterEntities = true}) XmlAttribute?
Returns the first attribute found in string. string must not be null.
parseString(String string, {bool parseCharacterEntities = true, bool trimWhitespace = true, int start = 0, int? stop}) List<XmlAttribute>?
Returns a list of every attribute found in string. string must not be null.