check method
Implementation
@override
void check(
DcqRegistry registry,
) {
registry.addMethodInvocation((node) {
if (node.methodName.name != 'toString') return;
if (node.isNullAware) return;
final target = node.target;
if (target == null) return;
final targetType = target.staticType;
if (targetType == null) return;
if (targetType.nullabilitySuffix == NullabilitySuffix.question) {
reportAtNode(node);
}
});
}