getTypeParameterSuffix function

String getTypeParameterSuffix(
  1. List<String> typeParameterNames
)

returns the type parameter suffix (like <T>)

Implementation

String getTypeParameterSuffix(List<String> typeParameterNames) {
  String typeParameterSuffix = '';
  if (typeParameterNames.isNotEmpty) {
    typeParameterSuffix = '<${typeParameterNames.join(', ')}>';
  }
  return typeParameterSuffix;
}