getGetterType static method
Returns the class mirror of the given field (including getter), or null
- if no such field nor getter.
Implementation
static ClassMirror? getGetterType(ClassMirror classMirror, String field) {
final mtd = classMirror.declarations[Symbol(field)];
return mtd is MethodMirror ? mtd.returnType as ClassMirror:
mtd is VariableMirror ? mtd.type as ClassMirror: null;
}