simpleNameOfType function Null safety

String simpleNameOfType(
  1. Type type
)

Implementation

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