GetAttribute method

String? GetAttribute(
  1. String attributeName
)

Implementation

String? GetAttribute(String attributeName) {
  return (_current as XmlStartElementEvent)
      .attributes
      .firstWhereOrNull((attr) => attr.localName == attributeName)
      ?.value;
}