dvGlobalName function
The name a global is declared by: the lowerCamel form of its type.
export: [cart] names Cart, which is how the declaration reads in the
specification and how anyone would write it down.
Implementation
String dvGlobalName(Type type) {
final String name = type.toString().split('<').first.trim();
if (name.isEmpty) return name;
return name[0].toLowerCase() + name.substring(1);
}