check method
Implementation
@override
void check(DcqRegistry registry) {
registry.addMethodInvocation((node) {
final name = node.methodName.name;
if (name != 'watch' && name != 'select') return;
final target = node.target;
if (target == null) return;
final type = target.staticType;
if (type is! InterfaceType || type.element.name != 'BuildContext') return;
if (_isInsideBuildContext(node)) return;
reportAtNode(node);
});
}