errorHandler static method

Future<void> errorHandler(
  1. FlutterErrorDetails details
)

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);
}