check method
Implementation
@override
void check(DcqRegistry registry) {
registry.addInstanceCreationExpression((node) {
final type = node.staticType;
if (type is! InterfaceType) return;
if (type.element.name != 'RichText') return;
if (!isTypeFromPackage(type, 'flutter')) return;
reportAtNode(node.constructorName);
});
}