addError method
Implementation
Future<void> addError(Object error, StackTrace stackTrace) async {
if (error is FlutterErrorDetails) {
return await addFlutterError(error);
}
return await channel.invokeMethod('rumAddError', {
'message': error.toString(),
'stack': stackTrace.toString(),
});
}