anchor.diff:          errorCode: RPCErrorCodes.kInternalError,
         )
       ]);
  -    when(mockDevice.supportsScreenshot).thenReturn(true);
       await residentRunner.screenshot(mockFlutterDevice);
   
       expect(testLogger.errorText, contains('Error'));
  
positive.code:   final TargetPlatform _targetPlatform;
    final String _sdkNameAndVersion;
  
    @override
    final bool supportsHotRestart;
  
    @override
    Future<String> get sdkNameAndVersion async => _sdkNameAndVersion;
  
negative.code:     );
      flutterDevice.vmService = fakeVmServiceHost.vmService;
  
      final Future<void> exitFuture = flutterDevice.exitApps();
  
      await expectLater(exitFuture, completes);
  