annotationsOfExact<T> method
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);
Returns all annotations with the exact type of T
.
Iterable<T> annotationsOfExact<T>() => annotations
.where((element) => element.runtimeType == T)
.map((e) => e as T);