errorHandler static method
Implementation
static Future<void> errorHandler(FlutterErrorDetails details) async {
// Call private constructor for coverage. Doesn't have any other effect.
// TODO: Remove when you can test private constructor some other way.
Instrumentation._();
final crashReport =
CrashReport(errorDetails: details, stackTrace: details.stack);
final arguments = {
"hed": crashReport.toString(),
};
return await channel.invokeMethod<void>('createCrashReport', arguments);
}