getClassNameProperties static method
Implementation
static Map<String, String> getClassNameProperties(String className) {
final Map<String, String> properties = <String, String>{};
final DeclarationMirror? cm = currentMirrorSystem().isolate.rootLibrary.declarations[Symbol(className)];
if (cm is ClassMirror) {
for (final DeclarationMirror dm in cm.declarations.values) {
if (dm is VariableMirror) {
final String name = MirrorSystem.getName(dm.simpleName);
final String type = MirrorSystem.getName(dm.type.simpleName);
properties[name] = type;
}
}
}
return properties;
}