matches method
Checks if the given event matches this element info.
Implementation
bool matches(XmlStartElementEvent event) {
if (event.name.trim() != name) return false;
final eventAttrs = Map.fromEntries(
event.attributes.map((e) => MapEntry(e.name, e.value)),
);
for (final entry in attributes.entries) {
if (eventAttrs[entry.key] != entry.value) {
return false;
}
}
return true;
}