simpleNameOfType function

String simpleNameOfType(
  1. Type type
)

Implementation

String simpleNameOfType(Type type) {
  return "$type".replaceAll(typeParameters, '').trimStart("_").uncapitalize();
}