blob: a87648cda9c958e7816bc18d70c644facccc4eca [file] [log] [blame]
import '../../xml/utils/attribute_type.dart';
import '../annotations/has_parent.dart';
import 'named.dart';
/// Immutable attributes of XML events.
class XmlEventAttribute with XmlNamed, XmlHasParent {
XmlEventAttribute(this.name, this.value, this.attributeType);
@override
final String name;
final String value;
final XmlAttributeType attributeType;
@override
int get hashCode => Object.hash(name, value, attributeType);
@override
bool operator ==(Object other) =>
other is XmlEventAttribute &&
other.name == name &&
other.value == value &&
other.attributeType == attributeType;
}