isStaticGetterOrMethod function
Implementation
bool isStaticGetterOrMethod(String name, AnalyzedClass analyzedClass) {
final member = analyzedClass.classElement.getGetter(name) ??
analyzedClass.classElement.getMethod(name);
return member != null && member.isStatic;
}