sendSilentCrashReport static method
sendSilentCrashReport
Send a silent bugreport in the background. Useful for automated ui tests.
Params
description
Description of the bug
severity
Severity of the bug "LOW", "MIDDLE", "HIGH"
excludeData
Exclude data from the crash report
Available Platforms
Android, iOS, Web
Implementation
static Future<void> sendSilentCrashReport({
required String description,
required Severity severity,
Map<String, dynamic> excludeData = const {},
}) async {
if (!kIsWeb && !io.Platform.isAndroid && !io.Platform.isIOS) {
debugPrint(
'sendSilentCrashReport is not available for current operating system');
return;
}
String severityVal = _getSeverityValue(severity);
await _channel.invokeMethod(
'sendSilentCrashReport',
{
'description': description,
'severity': severityVal,
'excludeData': excludeData,
},
);
}