noDeclareFactoryConstructor method
Requires matching classes to not declare a factory constructor named name.
Implementation
HeimdallRule<CompilationUnitMember> noDeclareFactoryConstructor({
String name = 'new',
}) {
return satisfy(_classShouldNotDeclareFactoryConstructor(name: name));
}