firstAnnotationOf<T> method
T?
firstAnnotationOf<T>()
inherited
Gets the first annotation of type T
or returns null otherwise.
Implementation
T? firstAnnotationOf<T>() => annotations.whereType<T>().firstOrNull;