XmlRootElement class
An annotation used to specify how a root element is serialized.
Constructors
- XmlRootElement({String? name, String? namespace, bool? isSelfClosing})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isSelfClosing → bool?
-
If
true
(the default) then the root element will be self-closed if it is empty.final - name → String?
-
The name of the root element.
final
- namespace → String?
-
The namespace of the root element.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited