annotationsOfExact<T> method

Iterable<T> annotationsOfExact<T>()

Returns all annotations with the exact type of T.

Implementation

Iterable<T> annotationsOfExact<T>() => annotations
    .where((element) => element.runtimeType == T)
    .map((e) => e as T);