diff --git a/flutter/lib/src/native/cocoa/sentry_native_cocoa.dart b/flutter/lib/src/native/cocoa/sentry_native_cocoa.dart index 7ee411020d..5666246472 100644 --- a/flutter/lib/src/native/cocoa/sentry_native_cocoa.dart +++ b/flutter/lib/src/native/cocoa/sentry_native_cocoa.dart @@ -47,7 +47,7 @@ class SentryNativeCocoa extends SentryNativeChannel { Uint8List? imageBytes; await _replayRecorder?.capture((image) async { - var imageData = + final imageData = await image.toByteData(format: ImageByteFormat.png); if (imageData != null) { options.logger(