List annotations(typeOrFunc)

Source

List<dynamic> annotations(dynamic typeOrFunc) {
  if (this._injectableInfo.containsKey(typeOrFunc)) {
    var res = this._getReflectionInfo(typeOrFunc).annotations;
    return res ?? [];
  } else {
    return this.reflectionCapabilities.annotations(typeOrFunc);
  }
}