findAttribute method

CustomAttribute findAttribute(
  1. String name
)

Finds a custom attribute with the specified name.

Throws a WinmdException if no matching attribute is found.

Implementation

CustomAttribute findAttribute(String name) =>
    _attributeMap[name] ??
    (throw WinmdException('Attribute not found: $name'));