typeParametersString function
Implementation
String typeParametersString(
Iterable<TypeParameter> typeParameters, {
bool withBounds = false,
}) {
final parameters =
typeParameters.map((e) => withBounds ? e.toSource() : e.name).join(', ');
if (parameters.isNotEmpty) {
return '<$parameters>';
} else {
return '';
}
}