attribute method

String? attribute(
  1. String qname
)

The value of the attribute named qname, or null.

Implementation

String? attribute(String qname) {
  for (final a in attributes) {
    if (a.qname == qname) return a.value;
  }
  return null;
}