setCapturedImage method
Set a static image as the result returned by CameraStream.capturePhoto.
assetPath is the path to an image asset bundled in the test app,
e.g. 'assets/test_photo.png'.
Implementation
Future<void> setCapturedImage(String assetPath) async {
await _channel.invokeMethod<void>('mock_setCapturedImage', {
'deviceId': deviceId,
'assetPath': assetPath,
});
}