check method
Implementation
@override
void check(
DcqRegistry registry,
) {
registry.addMethodInvocation((node) {
if (node.methodName.name != 'thenReturn') return;
final args = node.argumentList.arguments;
if (args.isEmpty) return;
final argType = args.first.staticType;
if (argType is! InterfaceType) return;
if (_isFutureOrStream(argType)) {
reportAtNode(node.methodName);
}
});
}