readAnnotation<AnnotationType> method

Annotated<AnnotationType>? readAnnotation<AnnotationType>()

Implementation

Annotated<AnnotationType>? readAnnotation<AnnotationType>() {
  final element = this;
  return Annotated(element, _getAnnotation<AnnotationType>(element));
}