getAnnotation method

  1. @override
ElementAnnotation? getAnnotation(
  1. String name
)
override

Returns the first annotation with the given name, or null if no such

Implementation

@override
ElementAnnotation? getAnnotation(String name) {
  return metadata.firstWhereOrNull((ElementAnnotation e) => e.name == name);
}