XmlElement class

An annotation used to specify how an element is serialized.

Constructors

XmlElement({String? name, String? namespace, bool? isSelfClosing, bool? includeIfNull})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
includeIfNull bool?
If true (the default) then the element will be serialized even if it is null.
final
isSelfClosing bool?
If true (the default) then the element will be self-closed if it is empty.
final
name String?
The name of the element.
final
namespace String?
The namespace of the 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