Description
For example
|
final json = await _channel.invokeMapMethod<String, dynamic>( |
|
'endNativeFrames', {'id': id.toString()}); |
|
return (json != null) ? NativeFrames.fromJson(json) : null; |
|
} catch (error, stackTrace) { |
|
_logError('endNativeFrames', error, stackTrace); |
|
return null; |
On the Web,
endNativeFrames returns an empty string so it fails to cast to
<String, dynamic>.
Since we swallow its exceptions, it's not a problem, but we should not call such methods in the first place, only for Android, iOS, and macOS for now.
Description
For example
sentry-dart/flutter/lib/src/sentry_native_channel.dart
Lines 39 to 44 in d235a79
On the Web,
endNativeFramesreturns an empty string so it fails to cast to<String, dynamic>.Since we swallow its exceptions, it's not a problem, but we should not call such methods in the first place, only for Android, iOS, and macOS for now.