The Dart code has the following declaration: ```dart @Native<Void Function(Pointer<Void>, Handle)>(symbol: 'PictureRecorder::endRecording') external void _endRecording(_NativePicture outPicture); ``` => Dart doesn't expect to get a return value, so C++ shouldn't return anything.