isStaticGetterOrMethod function

bool isStaticGetterOrMethod(
  1. String name,
  2. AnalyzedClass analyzedClass
)

Implementation

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