isStaticSetter function

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

Implementation

bool isStaticSetter(String name, AnalyzedClass analyzedClass) {
  final setter = analyzedClass.classElement.getSetter(name);
  return setter != null && setter.isStatic;
}