Source
@override String get genericParameters { if (element is GenericTypeAliasElement) { List<TypeParameterElement> genericTypeParameters = (element as GenericTypeAliasElement).function.typeParameters; if (genericTypeParameters.isNotEmpty) { return '<${genericTypeParameters.map((t) => t.name).join(', ')}>'; } } // else, all types are resolved. return ''; }