check method
Implementation
@override
void check(
DcqRegistry registry,
) {
registry.addMethodInvocation((node) {
final methodName = node.methodName.name;
if (methodName != 'read') return;
final target = node.realTarget;
if (target == null) return;
final type = target.staticType;
if (type is! InterfaceType || !isRefType(type)) return;
if (!_isInsideAsyncCallback(node)) return;
reportAtNode(node);
});
}