hasJsEnumAnnotation function

bool hasJsEnumAnnotation (
  1. ClassElement clazz
)

Implementation

bool hasJsEnumAnnotation(ClassElement clazz) => clazz
    .computeNode()
    .metadata
    .where(
        (a) => a.element.library.name == _libName && a.element.name == 'jsEnum')
    .isNotEmpty;