in source_gen/lib/src/utils.dart [24:39]
String typeNameOf(DartType type) {
final aliasElement = type.alias?.element;
if (aliasElement != null) {
return aliasElement.name;
}
if (type is DynamicType) {
return 'dynamic';
}
if (type is InterfaceType) {
return type.element.name;
}
if (type is TypeParameterType) {
return type.element.name;
}
throw UnimplementedError('(${type.runtimeType}) $type');
}